pub enum TokenKind {
Show 71 variants
IntLit(i64),
FloatLit(f64),
StringLit(String),
CharLit(char),
Ident(String),
UpperIdent(String),
TyVar(String),
Val,
Fun,
Fn,
Let,
In,
End,
If,
Then,
Else,
Case,
Of,
Datatype,
Type,
Local,
And,
Rec,
Use,
True,
False,
Not,
Andalso,
Orelse,
Mod,
As,
Effect,
Handle,
With,
Perform,
Resume,
Return,
Plus,
Minus,
Star,
Slash,
PlusDot,
MinusDot,
StarDot,
SlashDot,
Caret,
Lt,
Gt,
Le,
Ge,
LtDot,
GtDot,
LeDot,
GeDot,
Eq,
Ne,
Tilde,
ColonColon,
Arrow,
ThinArrow,
Bar,
LParen,
RParen,
LBracket,
RBracket,
Comma,
Colon,
Semicolon,
Underscore,
Hash,
Eof,
}Variants§
IntLit(i64)
FloatLit(f64)
StringLit(String)
CharLit(char)
Ident(String)
UpperIdent(String)
TyVar(String)
Val
Fun
Fn
Let
In
End
If
Then
Else
Case
Of
Datatype
Type
Local
And
Rec
Use
True
False
Not
Andalso
Orelse
Mod
As
Effect
Handle
With
Perform
Resume
Return
Plus
Minus
Star
Slash
PlusDot
MinusDot
StarDot
SlashDot
Caret
Lt
Gt
Le
Ge
LtDot
GtDot
LeDot
GeDot
Eq
Ne
Tilde
ColonColon
Arrow
ThinArrow
Bar
LParen
RParen
LBracket
RBracket
Comma
Colon
Semicolon
Underscore
Hash
Eof
Implementations§
Trait Implementations§
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