pub enum Token {
Show 28 variants
Less,
LessEqual,
GreaterEqual,
Greater,
Equal,
NotEqual,
In,
Plus,
Minus,
Times,
Divide,
Percent,
VBar,
And,
Or,
VBarEqual,
Id,
Number,
Hex,
String,
LBra,
RBra,
Comma,
Colon,
Dot,
Exclamation,
Unknown,
EndOfFile,
}
Expand description
Parsing token.
Variants
Less
LessEqual
GreaterEqual
Greater
Equal
NotEqual
In
Plus
Minus
Times
Divide
Percent
VBar
And
Or
VBarEqual
Id
Number
Hex
String
LBra
RBra
Comma
Colon
Dot
Exclamation
Unknown
EndOfFile
Implementations
sourceimpl Token
impl Token
sourcepub fn precedence(self) -> i8
pub fn precedence(self) -> i8
Trait Implementations
sourceimpl PartialEq<Token> for Token
impl PartialEq<Token> for Token
sourceimpl PartialOrd<Token> for Token
impl PartialOrd<Token> for Token
sourcefn partial_cmp(&self, other: &Token) -> Option<Ordering>
fn partial_cmp(&self, other: &Token) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for Token
impl Eq for Token
impl StructuralEq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more