pub enum Token {
Show 77 variants
Int(i64),
Float(f64),
Str(String),
FStr(String),
Bytes(Vec<u8>),
True,
False,
Ident(String),
Label(String),
Let,
Mut,
Fn,
Match,
If,
Else,
For,
While,
Loop,
Break,
Continue,
Return,
In,
As,
None,
Some,
Ok,
Err,
Async,
Spawn,
Await,
Select,
Try,
Catch,
Use,
LParen,
RParen,
LBrace,
RBrace,
LBracket,
RBracket,
HashBrace,
Plus,
Minus,
Star,
Slash,
Percent,
Eq,
EqEq,
BangEq,
Lt,
Gt,
LtEq,
GtEq,
And,
Or,
Bang,
PlusEq,
MinusEq,
StarEq,
SlashEq,
Pipe,
Question,
Ampersand,
Caret,
Shl,
Shr,
DotDot,
DotDotEq,
Dot,
DotDotDot,
Comma,
Colon,
Semicolon,
Arrow,
PipeSym,
ColonColon,
Eof,
}Variants§
Int(i64)
Float(f64)
Str(String)
FStr(String)
Bytes(Vec<u8>)
True
False
Ident(String)
Label(String)
Let
Mut
Fn
Match
If
Else
For
While
Loop
Break
Continue
Return
In
As
None
Some
Ok
Err
Async
Spawn
Await
Select
Try
Catch
Use
LParen
RParen
LBrace
RBrace
LBracket
RBracket
HashBrace
Plus
Minus
Star
Slash
Percent
Eq
EqEq
BangEq
Lt
Gt
LtEq
GtEq
And
Or
Bang
PlusEq
MinusEq
StarEq
SlashEq
Pipe
Question
Ampersand
Caret
Shl
Shr
DotDot
DotDotEq
Dot
DotDotDot
Comma
Colon
Semicolon
Arrow
PipeSym
ColonColon
Eof
Trait Implementations§
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 UnsafeUnpin 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