pub enum TokenKind {
And,
Or,
ParenOpen,
ParenClose,
Colon,
Char(char),
Eof,
Break,
}Expand description
All possible kinds of tokens.
Variants§
And
The AND
Or
The OR
ParenOpen
A closing parentheses (i.e., ))
ParenClose
An opening parentheses (i.e., ()
Colon
A colon (i.e., :)
Char(char)
An arbitrary char, which is not one of the other tokens.
Eof
The input stream has ended.
Break
A break in the input (in most cases a simple spaces, but is determined
by the slices fed
into Query::from_slice)
Trait Implementations§
Source§impl Ord for TokenKind
impl Ord for TokenKind
Source§impl PartialOrd for TokenKind
impl PartialOrd for TokenKind
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.