pub enum Token {
}Expand description
A Token is the smallest logical unit evaluated by the compiler.
Variants§
LeftParen
RightParen
LeftBracket
RightBracket
Plus
Minus
Star
Slash
Comma
Greater
GreaterEqual
Less
LessEqual
Equal
NotEqual
And
Or
Xor
Not
Div
Mod
Literal(Value)
Identifier(String)
Trait Implementations§
Source§impl PartialOrd for Token
impl PartialOrd for Token
Source§impl TryFrom<&Token> for Operator
impl TryFrom<&Token> for Operator
§Errors
Returns Error::TokenNotAnOperator if an invalid Token is encountered.
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
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