pub enum TKind {
Show 90 variants
Comment,
OutDoc,
InDoc,
As,
Break,
Const,
Continue,
Do,
Else,
Enum,
False,
Fn,
For,
If,
Impl,
In,
Let,
Loop,
Macro,
Match,
Mod,
Mut,
Pub,
Return,
Static,
Struct,
True,
Type,
Use,
While,
Identifier,
Character,
String,
Integer,
LCurly,
RCurly,
LBrack,
RBrack,
LParen,
RParen,
Amp,
AmpAmp,
AmpEq,
Arrow,
At,
Backslash,
Bang,
BangBang,
BangEq,
Bar,
BarBar,
BarEq,
Colon,
ColonColon,
Comma,
Dollar,
Dot,
DotDot,
DotDotDot,
DotDotEq,
Eq,
EqEq,
FatArrow,
Grave,
Gt,
GtEq,
GtGt,
GtGtEq,
Hash,
HashBang,
Lt,
LtEq,
LtLt,
LtLtEq,
Minus,
MinusEq,
Plus,
PlusEq,
Question,
Rem,
RemEq,
Semi,
Slash,
SlashEq,
Star,
StarEq,
Tilde,
Xor,
XorEq,
XorXor,
}Expand description
The lexical classification of a Token.
Variants§
Comment
Line or block comment
OutDoc
Outer doc comment ///.*
InDoc
Inner doc comment: //!.*
As
Break
Const
Continue
Do
Else
Enum
False
Fn
For
If
Impl
In
Let
Loop
Macro
Match
Mod
Mut
Pub
Return
Static
Struct
True
Type
Use
While
Identifier
Character
String
Integer
0(x[0-9A-Fa-f]* | d[0-9]* | o[0-7]* | b[0-1]*) | [1-9][0-9]*
LCurly
{
RCurly
}
LBrack
[
RBrack
]
LParen
(
RParen
)
Amp
&
AmpAmp
&&
AmpEq
&=
Arrow
->
At
@
Backslash
\
Bang
!
BangBang
!!
BangEq
!=
Bar
|
BarBar
||
BarEq
|=
Colon
:
ColonColon
::
Comma
,
Dollar
$
Dot
.
DotDot
..
DotDotDot
…
DotDotEq
..=
Eq
=
EqEq
==
FatArrow
=>
Grave
`
Gt
GtEq
=
GtGt
GtGtEq
=
Hash
HashBang
#!
Lt
<
LtEq
<=
LtLt
<<
LtLtEq
<<=
Minus
MinusEq
-=
Plus
PlusEq
+=
Question
?
Rem
%
RemEq
%=
Semi
;
Slash
/
SlashEq
/=
Star
StarEq
*=
Tilde
~
Xor
^
XorEq
^=
XorXor
^^
Implementations§
Trait Implementations§
impl Copy for TKind
impl Eq for TKind
impl StructuralPartialEq for TKind
Auto Trait Implementations§
impl Freeze for TKind
impl RefUnwindSafe for TKind
impl Send for TKind
impl Sync for TKind
impl Unpin for TKind
impl UnwindSafe for TKind
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