pub enum Sym<'a> {
Id(&'a str),
String(&'a str),
Number(f64),
Keyword(&'a str),
Operator(Operator),
Symbol(Symbol),
Eof,
}Expand description
Symbol type representing the category and value of a token.
This enum encompasses all the different types of tokens that can appear in an EventQL query, from keywords and operators to literals and symbols.
Variants§
Id(&'a str)
Identifier (variable names, keywords not yet classified)
String(&'a str)
String literal
Number(f64)
Numeric literal
Keyword(&'a str)
Keyword (FROM, WHERE, etc.)
Operator(Operator)
Operator (+, -, ==, AND, etc.)
Symbol(Symbol)
Structural symbol (parentheses, brackets, etc.)
Eof
End of file marker
Trait Implementations§
impl<'a> Copy for Sym<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sym<'a>
impl<'a> RefUnwindSafe for Sym<'a>
impl<'a> Send for Sym<'a>
impl<'a> Sync for Sym<'a>
impl<'a> Unpin for Sym<'a>
impl<'a> UnwindSafe for Sym<'a>
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