Enum text_tokenizer::Token
source · pub enum Token<T> {
Show 14 variants
Word(String),
StrangeWord(String),
Hashtag(String),
Mention(String),
Punctuation(String),
Numerical(Numerical),
Number(Number),
Emoji(&'static str),
Unicode(String),
Separator(Separator),
UnicodeFormatter(Formatter),
UnicodeModifier(char),
Url(String),
BBCode {
left: Vec<T>,
right: Vec<T>,
},
}Variants§
Word(String)
StrangeWord(String)
Hashtag(String)
Mention(String)
Punctuation(String)
Numerical(Numerical)
Number(Number)
Emoji(&'static str)
Unicode(String)
Separator(Separator)
UnicodeFormatter(Formatter)
UnicodeModifier(char)
Url(String)
BBCode
Trait Implementations§
source§impl<T: PartialEq> PartialEq for Token<T>
impl<T: PartialEq> PartialEq for Token<T>
source§impl<T: PartialOrd> PartialOrd for Token<T>
impl<T: PartialOrd> PartialOrd for Token<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T> StructuralPartialEq for Token<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Token<T>where
T: RefUnwindSafe,
impl<T> Send for Token<T>where
T: Send,
impl<T> Sync for Token<T>where
T: Sync,
impl<T> Unpin for Token<T>where
T: Unpin,
impl<T> UnwindSafe for Token<T>where
T: UnwindSafe,
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