pub enum Tokentype {
Show 36 variants
Identifier,
IntegerLiteral,
FloatLiteral,
StringLiteral,
BooleanLiteral,
Let,
Mut,
Plus,
Minus,
Multiply,
Divide,
Not,
And,
Or,
Greater,
Less,
GreaterEqual,
LessEqual,
EqualEqual,
NotEqual,
Invalid,
Equal,
Colon,
Semicolon,
Struct,
LeftBrace,
RightBrace,
Comma,
Fn,
LeftParen,
RightParen,
Arrow,
Return,
If,
Else,
Eof,
}
Expand description
Types of tokens in the language lexer
Variants§
Identifier
IntegerLiteral
FloatLiteral
StringLiteral
BooleanLiteral
Let
Mut
Plus
Minus
Multiply
Divide
Not
And
Or
Greater
Less
GreaterEqual
LessEqual
EqualEqual
NotEqual
Invalid
Equal
Colon
Semicolon
Struct
LeftBrace
RightBrace
Comma
Fn
LeftParen
RightParen
Arrow
Return
If
Else
Eof
Trait Implementations§
impl StructuralPartialEq for Tokentype
Auto Trait Implementations§
impl Freeze for Tokentype
impl RefUnwindSafe for Tokentype
impl Send for Tokentype
impl Sync for Tokentype
impl Unpin for Tokentype
impl UnwindSafe for Tokentype
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