Enum icu_segmenter::word::WordType
source · #[non_exhaustive]#[repr(u8)]pub enum WordType {
None = 0,
Number = 1,
Letter = 2,
}
Expand description
The word type tag that is returned by WordBreakIterator::word_type()
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None = 0
No category tag.
Number = 1
Number category tag.
Letter = 2
Letter category tag, including CJK.
Implementations§
Trait Implementations§
source§impl AsULE for WordType
impl AsULE for WordType
§type ULE = WordTypeULE
type ULE = WordTypeULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(other: Self::ULE) -> Self
fn from_unaligned(other: Self::ULE) -> Self
source§impl PartialEq for WordType
impl PartialEq for WordType
source§impl<'a> ZeroMapKV<'a> for WordType
impl<'a> ZeroMapKV<'a> for WordType
impl Copy for WordType
impl StructuralPartialEq for WordType
Auto Trait Implementations§
impl Freeze for WordType
impl RefUnwindSafe for WordType
impl Send for WordType
impl Sync for WordType
impl Unpin for WordType
impl UnwindSafe for WordType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more