pub enum TokenKind {
Show 131 variants
IntegerLit(String),
FloatLit(String),
BoolLit(bool),
CharLit(String),
StringLit(String),
NullLit,
Ident(String),
Abstract,
Assert,
Boolean,
Break,
Byte,
Case,
Catch,
Char,
Class,
Const,
Continue,
Default,
Do,
Double,
Else,
Enum,
Extends,
Final,
Finally,
Float,
For,
Goto,
If,
Implements,
Import,
Instanceof,
Int,
Interface,
Long,
Module,
Native,
New,
Package,
Private,
Protected,
Public,
Requires,
Return,
Short,
Static,
Strictfp,
Super,
Switch,
Synchronized,
This,
Throw,
Throws,
Transient,
Try,
Void,
Volatile,
While,
Underscore,
Open,
Opens,
Exports,
Provides,
To,
Transitive,
Uses,
With,
Yield,
Var,
Record,
Sealed,
Permits,
NonSealed,
When,
LParen,
RParen,
LBrace,
RBrace,
LBracket,
RBracket,
Semicolon,
Comma,
Dot,
DotDot,
Ellipsis,
At,
ColonColon,
Eq,
Gt,
Lt,
Bang,
Tilde,
Question,
Colon,
Arrow,
EqEq,
GtEq,
LtEq,
BangEq,
AmpAmp,
PipePipe,
PlusPlus,
MinusMinus,
Plus,
Minus,
Star,
Slash,
Amp,
Pipe,
Caret,
Percent,
LtLt,
GtGt,
GtGtGt,
PlusEq,
MinusEq,
StarEq,
SlashEq,
AmpEq,
PipeEq,
CaretEq,
PercentEq,
LtLtEq,
GtGtEq,
GtGtGtEq,
LineComment(String),
BlockComment(String),
DocLineComment(String),
DocBlockComment(String),
Eof,
}Expand description
The kind of token.
Variants§
IntegerLit(String)
FloatLit(String)
BoolLit(bool)
CharLit(String)
StringLit(String)
NullLit
Ident(String)
Abstract
Assert
Boolean
Break
Byte
Case
Catch
Char
Class
Const
Continue
Default
Do
Double
Else
Enum
Extends
Final
Finally
Float
For
Goto
If
Implements
Import
Instanceof
Int
Interface
Long
Module
Native
New
Package
Private
Protected
Public
Requires
Return
Short
Static
Strictfp
Super
Switch
Synchronized
This
Throw
Throws
Transient
Try
Void
Volatile
While
Underscore
Open
Opens
Exports
Provides
To
Transitive
Uses
With
Yield
Var
Record
Sealed
Permits
NonSealed
When
LParen
RParen
LBrace
RBrace
LBracket
RBracket
Semicolon
Comma
Dot
DotDot
Ellipsis
At
ColonColon
Eq
Gt
Lt
Bang
Tilde
Question
Colon
Arrow
EqEq
GtEq
LtEq
BangEq
AmpAmp
PipePipe
PlusPlus
MinusMinus
Plus
Minus
Star
Slash
Amp
Pipe
Caret
Percent
LtLt
GtGt
GtGtGt
PlusEq
MinusEq
StarEq
SlashEq
AmpEq
PipeEq
CaretEq
PercentEq
LtLtEq
GtGtEq
GtGtGtEq
LineComment(String)
BlockComment(String)
DocLineComment(String)
DocBlockComment(String)
Eof
Trait Implementations§
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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