pub enum TokenKind {
Thai,
Latin,
Number,
Punctuation,
Emoji,
Whitespace,
Unknown,
}Expand description
Classification of a Token’s script / category.
Variants§
Thai
Thai script syllable or word.
Latin
Latin / ASCII alphabetic text.
Number
Numeric digits (ASCII or Thai ๐–๙).
Punctuation
Punctuation or symbol.
Emoji
Emoji character sequence.
Whitespace
Whitespace (space, tab, newline).
Unknown
Anything that does not fit the above categories.
Trait Implementations§
impl Copy for TokenKind
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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