pub enum Token {
Show 92 variants
Let,
Mut,
Const,
Fn,
Return,
If,
Else,
While,
For,
In,
Break,
Continue,
Match,
Type,
Record,
Trait,
Impl,
Import,
Module,
Pub,
Async,
Await,
Extern,
Unsafe,
True,
False,
As,
Is,
Where,
With,
SelfLower,
SelfUpper,
LParen,
RParen,
LBracket,
RBracket,
LBrace,
RBrace,
Comma,
Semicolon,
Colon,
ColonColon,
Arrow,
FatArrow,
Dot,
DotDot,
DotDotEq,
At,
Question,
Eq,
EqEq,
BangEq,
Lt,
LtEq,
Gt,
GtEq,
AmpAmp,
PipePipe,
Bang,
Plus,
Minus,
Star,
Slash,
Percent,
PlusEq,
MinusEq,
StarEq,
SlashEq,
PercentEq,
Amp,
Pipe,
Caret,
Tilde,
LtLt,
GtGt,
AmpEq,
PipeEq,
CaretEq,
LtLtEq,
GtGtEq,
Int(i64),
Float(f64),
Char(char),
StrStart,
StrPart(String),
StrEnd,
InterpOpen,
InterpClose,
RawStr(String),
Ident(String),
DocComment(String),
Eof,
}Expand description
Every token produced by the Nova lexer.
Variants§
Let
Mut
Const
Fn
Return
If
Else
While
For
In
Break
Continue
Match
Type
Record
Trait
Impl
Import
Module
Pub
Async
Await
Extern
Unsafe
True
False
As
Is
Where
With
SelfLower
SelfUpper
LParen
RParen
LBracket
RBracket
LBrace
RBrace
Comma
Semicolon
Colon
ColonColon
Arrow
FatArrow
Dot
DotDot
DotDotEq
At
Question
Eq
EqEq
BangEq
Lt
LtEq
Gt
GtEq
AmpAmp
PipePipe
Bang
Plus
Minus
Star
Slash
Percent
PlusEq
MinusEq
StarEq
SlashEq
PercentEq
Amp
Pipe
Caret
Tilde
LtLt
GtGt
AmpEq
PipeEq
CaretEq
LtLtEq
GtGtEq
Int(i64)
Float(f64)
Char(char)
StrStart
Opening " of a string literal.
StrPart(String)
A literal text segment inside a string.
StrEnd
The closing " of a string literal.
InterpOpen
The ${ that opens an interpolation expression.
InterpClose
The } that closes an interpolation expression.
RawStr(String)
A raw string literal r"..." or r#"..."#.
Ident(String)
DocComment(String)
/// doc comment text (without the leading ///).
Eof
Implementations§
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