pub enum TokenKind {
Show 79 variants
Integer,
Float,
String,
True,
False,
Identifier,
Local,
Mut,
Function,
Return,
If,
Then,
Else,
Elseif,
End,
While,
Do,
For,
In,
Break,
Continue,
Struct,
Enum,
Trait,
Impl,
Match,
Case,
As,
Is,
Extern,
Unsafe,
Pub,
Use,
Module,
Const,
Static,
Type,
Plus,
Minus,
Star,
Slash,
Percent,
Caret,
DoubleDot,
Concat,
Equal,
DoubleEqual,
NotEqual,
Less,
LessEqual,
Greater,
GreaterEqual,
And,
Or,
Not,
PlusEqual,
MinusEqual,
StarEqual,
SlashEqual,
Ampersand,
Pipe,
Question,
LeftParen,
RightParen,
LeftBrace,
RightBrace,
LeftBracket,
RightBracket,
Comma,
Colon,
DoubleColon,
Semicolon,
Dot,
Arrow,
FatArrow,
Comment,
Whitespace,
Newline,
Eof,
}Variants§
Integer
Float
String
True
False
Identifier
Local
Mut
Function
Return
If
Then
Else
Elseif
End
While
Do
For
In
Break
Continue
Struct
Enum
Trait
Impl
Match
Case
As
Is
Extern
Unsafe
Pub
Use
Module
Const
Static
Type
Plus
Minus
Star
Slash
Percent
Caret
DoubleDot
Concat
Equal
DoubleEqual
NotEqual
Less
LessEqual
Greater
GreaterEqual
And
Or
Not
PlusEqual
MinusEqual
StarEqual
SlashEqual
Ampersand
Pipe
Question
LeftParen
RightParen
LeftBrace
RightBrace
LeftBracket
RightBracket
Comma
Colon
DoubleColon
Semicolon
Dot
Arrow
FatArrow
Comment
Whitespace
Newline
Eof
Implementations§
Trait Implementations§
impl Copy for TokenKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.