pub enum TokenDescription {
Show 121 variants
Ident,
Lifetime,
As,
Async,
Await,
Break,
Const,
Continue,
Crate,
Dyn,
Else,
Enum,
Extern,
False,
Fn,
For,
If,
Impl,
In,
Let,
Loop,
Match,
Mod,
Move,
Mut,
Pub,
Ref,
Return,
Self_,
SelfUpper,
Static,
Struct,
Super,
Trait,
True,
Type,
Union,
Unsafe,
Use,
Where,
While,
Yield,
Abstract,
Become,
Box,
Do,
Final,
Macro,
Override,
Priv,
Try,
Typeof,
Unsized,
Virtual,
Literal,
Plus,
Minus,
Star,
Slash,
Percent,
Caret,
Not,
And,
Or,
AndAnd,
OrOr,
Shl,
Shr,
PlusEquals,
MinusEquals,
StarEquals,
SlashEquals,
PercentEquals,
CaretEquals,
AndEquals,
OrEquals,
ShlEquals,
ShrEquals,
Equals,
EqualsEquals,
NotEquals,
GreaterThan,
LessThan,
GreaterThanEquals,
LessThanEquals,
At,
Underscore,
Dot,
DotDot,
DotDotDot,
DotDotEquals,
Comma,
Semicolon,
Colon,
ColonColon,
RightArrow,
FatArrow,
Pound,
Dollar,
QuestionMark,
LParen,
RParen,
LBracket,
RBracket,
LBrace,
RBrace,
FragmentBlock,
FragmentExpr,
FragmentIdent,
FragmentItem,
FragmentLifetime,
FragmentLiteral,
FragmentMeta,
FragmentPat,
FragmentPatParam,
FragmentPath,
FragmentStmt,
FragmentTt,
FragmentTy,
FragmentVis,
Eof,
}Variants§
Ident
Lifetime
As
Async
Await
Break
Const
Continue
Crate
Dyn
Else
Enum
Extern
False
Fn
For
If
Impl
In
Let
Loop
Match
Mod
Move
Mut
Pub
Ref
Return
Self_
SelfUpper
Static
Struct
Super
Trait
True
Type
Union
Unsafe
Use
Where
While
Yield
Abstract
Become
Box
Do
Final
Macro
Override
Priv
Try
Typeof
Unsized
Virtual
Literal
Plus
Minus
Star
Slash
Percent
Caret
Not
And
Or
AndAnd
OrOr
Shl
Shr
PlusEquals
MinusEquals
StarEquals
SlashEquals
PercentEquals
CaretEquals
AndEquals
OrEquals
ShlEquals
ShrEquals
Equals
EqualsEquals
NotEquals
GreaterThan
LessThan
GreaterThanEquals
LessThanEquals
At
Underscore
Dot
DotDot
DotDotDot
DotDotEquals
Comma
Semicolon
Colon
ColonColon
RightArrow
FatArrow
Pound
Dollar
QuestionMark
LParen
RParen
LBracket
RBracket
LBrace
RBrace
FragmentBlock
FragmentExpr
FragmentIdent
FragmentItem
FragmentLifetime
FragmentLiteral
FragmentMeta
FragmentPat
FragmentPatParam
FragmentPath
FragmentStmt
FragmentTt
FragmentTy
FragmentVis
Eof
Trait Implementations§
Source§impl Clone for TokenDescription
impl Clone for TokenDescription
Source§fn clone(&self) -> TokenDescription
fn clone(&self) -> TokenDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenDescription
impl Debug for TokenDescription
Source§impl Ord for TokenDescription
impl Ord for TokenDescription
Source§fn cmp(&self, other: &TokenDescription) -> Ordering
fn cmp(&self, other: &TokenDescription) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TokenDescription
impl PartialEq for TokenDescription
Source§impl PartialOrd for TokenDescription
impl PartialOrd for TokenDescription
impl Copy for TokenDescription
impl Eq for TokenDescription
impl StructuralPartialEq for TokenDescription
Auto Trait Implementations§
impl Freeze for TokenDescription
impl RefUnwindSafe for TokenDescription
impl Send for TokenDescription
impl Sync for TokenDescription
impl Unpin for TokenDescription
impl UnwindSafe for TokenDescription
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