Enum cl_token::token_type::TokenKind
source · pub enum TokenKind {
Show 33 variants
Invalid,
Comment,
Literal,
Identifier,
As,
Break,
Cl,
Const,
Continue,
Else,
Enum,
False,
For,
Fn,
If,
Impl,
In,
Let,
Loop,
Mod,
Mut,
Pub,
Return,
SelfKw,
SelfTy,
Static,
Struct,
Super,
True,
Type,
Use,
While,
Punct(Punct),
}
Expand description
Stores a Token’s lexical information
Variants§
Invalid
Invalid sequence
Comment
Any kind of comment
Literal
Any tokenizable literal (See TokenData)
Identifier
A non-keyword identifier
As
Break
Cl
Const
Continue
Else
Enum
False
For
Fn
If
Impl
In
Let
Loop
Mod
Mut
Pub
Return
SelfKw
SelfTy
Static
Struct
Super
True
Type
Use
While
Punct(Punct)
Delimiter or punctuation
Trait Implementations§
source§impl PartialEq for TokenKind
impl PartialEq for TokenKind
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 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