Enum text_tokenizer::BasicToken
source · pub enum BasicToken<'t> {
Alphanumeric(&'t str),
Number(&'t str),
Punctuation(&'t str),
Separator(&'t str),
Formatter(&'t str),
Mixed(&'t str),
}Variants§
Alphanumeric(&'t str)
Number(&'t str)
Punctuation(&'t str)
Separator(&'t str)
Formatter(&'t str)
Mixed(&'t str)
Trait Implementations§
source§impl<'t> Clone for BasicToken<'t>
impl<'t> Clone for BasicToken<'t>
source§fn clone(&self) -> BasicToken<'t>
fn clone(&self) -> BasicToken<'t>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'t> Debug for BasicToken<'t>
impl<'t> Debug for BasicToken<'t>
source§impl<'t> PartialEq for BasicToken<'t>
impl<'t> PartialEq for BasicToken<'t>
source§fn eq(&self, other: &BasicToken<'t>) -> bool
fn eq(&self, other: &BasicToken<'t>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'t> PartialOrd for BasicToken<'t>
impl<'t> PartialOrd for BasicToken<'t>
source§fn partial_cmp(&self, other: &BasicToken<'t>) -> Option<Ordering>
fn partial_cmp(&self, other: &BasicToken<'t>) -> Option<Ordering>
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> Eq for BasicToken<'t>
impl<'t> StructuralEq for BasicToken<'t>
impl<'t> StructuralPartialEq for BasicToken<'t>
Auto Trait Implementations§
impl<'t> RefUnwindSafe for BasicToken<'t>
impl<'t> Send for BasicToken<'t>
impl<'t> Sync for BasicToken<'t>
impl<'t> Unpin for BasicToken<'t>
impl<'t> UnwindSafe for BasicToken<'t>
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