Enum SegmenterGranularity

#[non_exhaustive]
#[repr(u32)]
pub enum SegmenterGranularity

Type for Intl.Segmenter.

Variants

Grapheme = 0u32
Word = 1u32
Sentence = 2u32

Implementations

impl SegmenterGranularity

fn from_js_value(obj: &JsValue) -> Option<SegmenterGranularity>

Trait Implementations

impl Clone for SegmenterGranularity

fn clone(&self) -> Self

impl Copy for SegmenterGranularity

impl Debug for SegmenterGranularity

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for SegmenterGranularity

impl FromWasmAbi for SegmenterGranularity

type Abi = u32;
unsafe fn from_abi(val: u32) -> Self

impl IntoWasmAbi for SegmenterGranularity

type Abi = u32;
fn into_abi(self) -> u32

impl OptionFromWasmAbi for SegmenterGranularity

fn is_none(val: &u32) -> bool

impl OptionIntoWasmAbi for SegmenterGranularity

fn none() -> Self::Abi

impl PartialEq for SegmenterGranularity

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for SegmenterGranularity

impl WasmDescribe for SegmenterGranularity

fn describe()

Auto Trait Implementations

impl Freeze for SegmenterGranularity

impl RefUnwindSafe for SegmenterGranularity

impl Send for SegmenterGranularity

impl Sync for SegmenterGranularity

impl Unpin for SegmenterGranularity

impl UnsafeUnpin for SegmenterGranularity

impl UnwindSafe for SegmenterGranularity

Blanket Implementations

impl<S, T> Upcast<T> for SegmenterGranularity where T: UpcastFrom<S> + ?Sized, S: ?Sized,

impl<T> Any for SegmenterGranularity where T: 'static + ?Sized,

impl<T> Borrow<T> for SegmenterGranularity where T: ?Sized,

impl<T> BorrowMut<T> for SegmenterGranularity where T: ?Sized,

impl<T> CloneToUninit for SegmenterGranularity where T: Clone,

impl<T> From<T> for SegmenterGranularity

impl<T> ReturnWasmAbi for SegmenterGranularity where T: IntoWasmAbi,

impl<T> ToOwned for SegmenterGranularity where T: Clone,

impl<T, U> Into<U> for SegmenterGranularity where U: From<T>,

impl<T, U> TryFrom<U> for SegmenterGranularity where U: Into<T>,

impl<T, U> TryInto<U> for SegmenterGranularity where U: TryFrom<T>,