pub enum TokenType {
Show 36 variants
Source,
QuestionMark,
Colon,
Comma,
Dot,
LBracket,
RBracket,
SquareLBracket,
SquareRBracket,
Plus,
Minus,
Star,
Slash,
Or,
And,
Not,
Assign,
Open,
Close,
Pound,
At,
Equals,
NotEquals,
GreaterThan,
SmallerThan,
GreaterEquals,
SmallerEquals,
If,
Else,
Elif,
For,
Identifier,
FilePath,
StringLiteral,
NumericalLiteral,
NoneLiteral,
}
Variants§
Source
anything that is not a directive
QuestionMark
reserved symbols - characters
Colon
Comma
Dot
LBracket
RBracket
SquareLBracket
SquareRBracket
Plus
reserved symbols - arithmetics
Minus
Star
Slash
Or
reserved symbols - logical operators
And
Not
Assign
reserved symbols - assignments
Open
reserved symbols - directive definers
Close
Pound
At
Equals
reserved symbols - comparisons
NotEquals
GreaterThan
SmallerThan
GreaterEquals
SmallerEquals
If
reserved words
Else
Elif
For
Identifier
identifiers and literals
FilePath
StringLiteral
NumericalLiteral
NoneLiteral
Implementations§
Trait Implementations§
impl Copy for TokenType
impl Eq for TokenType
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