pub enum TokenType {
Show 77 variants
OpenParen,
CloseParen,
OpenBrace,
CloseBrace,
OpenBracket,
CloseBracket,
Comma,
Dot,
Minus,
Plus,
Semicolon,
Slash,
Star,
Colon,
Percent,
Pipe,
Bang,
Question,
At,
Dollar,
Underscore,
StarStar,
ColonColon,
Arrow,
FatArrow,
PipeArrow,
DotDot,
DotDotEq,
NotEqual,
Equal,
EqualEqual,
Greater,
GreaterEqual,
Less,
LessEqual,
PlusEqual,
MinusEqual,
StarEqual,
SlashEqual,
PercentEqual,
Identifier,
Error,
String,
FString,
RawString,
Number,
Doc,
And,
Break,
Class,
Const,
Continue,
Else,
Enum,
False,
For,
Fn,
If,
In,
Match,
Nil,
Not,
Or,
Pub,
Raise,
Return,
Super,
Self_,
True,
Let,
Use,
While,
AI,
Prompt,
Agent,
Invalid,
Eof,
}Expand description
Represents different types of tokens in the language
Variants§
OpenParen
CloseParen
OpenBrace
CloseBrace
OpenBracket
CloseBracket
Comma
Dot
Minus
Plus
Semicolon
Slash
Star
Colon
Percent
Pipe
Bang
Question
At
Dollar
Underscore
StarStar
ColonColon
Arrow
FatArrow
PipeArrow
DotDot
DotDotEq
NotEqual
Equal
EqualEqual
Greater
GreaterEqual
Less
LessEqual
PlusEqual
MinusEqual
StarEqual
SlashEqual
PercentEqual
Identifier
Error
String
FString
RawString
Number
Doc
And
Break
Class
Const
Continue
Else
Enum
False
For
Fn
If
In
Match
Nil
Not
Or
Pub
Raise
Return
Super
Self_
True
Let
Use
While
AI
Prompt
Agent
Invalid
Eof
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