pub enum Token<'s> {
Word(&'s str),
Special {
raw: &'s str,
normalized: Cow<'s, str>,
},
}Variants§
Word(&'s str)
Any word, for which fuzzy matching can be applied.
Special
A special token, like an email address, which should not be fuzzy matched.
Trait Implementations§
impl<'s> Eq for Token<'s>
impl<'s> StructuralPartialEq for Token<'s>
Auto Trait Implementations§
impl<'s> Freeze for Token<'s>
impl<'s> RefUnwindSafe for Token<'s>
impl<'s> Send for Token<'s>
impl<'s> Sync for Token<'s>
impl<'s> Unpin for Token<'s>
impl<'s> UnsafeUnpin for Token<'s>
impl<'s> UnwindSafe for Token<'s>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.