pub enum TokenKind {
Show 84 variants
StringTail(String),
StringExpr(String),
LitChar(char),
LitInt(String, IntBase, IntSuffix),
LitFloat(String, FloatSuffix),
Identifier(String),
End,
Class,
This,
CapitalThis,
Super,
Fun,
Let,
Var,
While,
If,
Else,
Loop,
For,
In,
Break,
Continue,
Return,
True,
False,
Nil,
Throws,
Throw,
Try,
TryForce,
TryOpt,
Do,
Catch,
Finally,
At,
Enum,
Type,
Alias,
Struct,
Trait,
Impl,
Module,
Const,
Underscore,
Defer,
Add,
AddEq,
Sub,
Mul,
Div,
Mod,
Not,
LParen,
RParen,
LBracket,
RBracket,
LBrace,
RBrace,
Comma,
Semicolon,
Dot,
Colon,
Sep,
Arrow,
Tilde,
BitOr,
BitAnd,
Caret,
And,
Or,
Eq,
EqEq,
Ne,
Lt,
Le,
Gt,
Ge,
EqEqEq,
NeEqEq,
Is,
As,
GtGt,
GtGtGt,
LtLt,
}
Variants§
StringTail(String)
StringExpr(String)
LitChar(char)
LitInt(String, IntBase, IntSuffix)
LitFloat(String, FloatSuffix)
Identifier(String)
End
Class
This
CapitalThis
Super
Fun
Let
Var
While
If
Else
Loop
For
In
Break
Continue
Return
True
False
Nil
Throws
Throw
Try
TryForce
TryOpt
Do
Catch
Finally
At
Enum
Type
Alias
Struct
Trait
Impl
Module
Const
Underscore
Defer
Add
AddEq
Sub
Mul
Div
Mod
Not
LParen
RParen
LBracket
RBracket
LBrace
RBrace
Comma
Semicolon
Dot
Colon
Sep
Arrow
Tilde
BitOr
BitAnd
Caret
And
Or
Eq
EqEq
Ne
Lt
Le
Gt
Ge
EqEqEq
NeEqEq
Is
As
GtGt
GtGtGt
LtLt
Implementations§
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)