pub enum Type {
Show 40 variants
LeftParen,
RightParen,
LeftBrace,
RightBrace,
Comma,
Dot,
Minus,
Plus,
Semicolon,
Slash,
Star,
Bang,
BangEqual,
Equal,
EqualEqual,
Greater,
GreaterEqual,
Less,
LessEqual,
Identifier,
String,
Number,
And,
Class,
Else,
False,
Fun,
For,
If,
Null,
Or,
Print,
Return,
Break,
Super,
This,
True,
Var,
While,
EOF,
}
Expand description
Represents a token type in the language.
Variants§
LeftParen
RightParen
LeftBrace
RightBrace
Comma
Dot
Minus
Plus
Semicolon
Slash
Star
Bang
BangEqual
Equal
EqualEqual
Greater
GreaterEqual
Less
LessEqual
Identifier
String
Number
And
Class
Else
False
Fun
For
If
Null
Or
Return
Break
Super
This
True
Var
While
EOF
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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