Enum rune::ast::generated::Kind [−][src]
pub enum Kind {}Show 108 variants
Eof, Error, Close(Delimiter), Open(Delimiter), Ident(StringSource), Label(StringSource), Byte(CopySource<u8>), ByteStr(StrSource), Char(CopySource<char>), Number(NumberSource), Str(StrSource), Abstract, AlignOf, Amp, AmpAmp, AmpEq, Arrow, As, Async, At, Await, Bang, BangEq, Become, Break, Caret, CaretEq, Colon, ColonColon, Comma, Const, Continue, Crate, Dash, DashEq, Default, Div, Do, Dollar, Dot, DotDot, DotDotEq, Else, Enum, Eq, EqEq, Extern, False, Final, Fn, For, Gt, GtEq, GtGt, GtGtEq, If, Impl, In, Is, Let, Loop, Lt, LtEq, LtLt, LtLtEq, Macro, Match, Mod, Move, Not, OffsetOf, Override, Perc, PercEq, Pipe, PipeEq, PipePipe, Plus, PlusEq, Pound, Priv, Proc, Pub, Pure, QuestionMark, Ref, Return, Rocket, Select, SelfType, SelfValue, SemiColon, SizeOf, SlashEq, Star, StarEq, Static, Struct, Super, Tilde, True, TypeOf, Underscore, Unsafe, Use, Virtual, While, Yield,
Expand description
The kind of the token.
Variants
En end-of-file marker.
En error marker.
A close delimiter: )
, }
, or ]
.
Tuple Fields of Close
0: Delimiter
An open delimiter: (
, {
, or [
.
Tuple Fields of Open
0: Delimiter
An identifier.
Tuple Fields of Ident
0: StringSource
A label, like 'loop
.
Tuple Fields of Label
0: StringSource
A byte literal.
Tuple Fields of Byte
0: CopySource<u8>
A byte string literal, including escape sequences. Like b"hello\nworld"
.
Tuple Fields of ByteStr
0: StrSource
A characer literal.
Tuple Fields of Char
0: CopySource<char>
A number literal, like 42
or 3.14
or 0xff
.
Tuple Fields of Number
0: NumberSource
A string literal, including escape sequences. Like "hello\nworld"
.
Tuple Fields of Str
0: StrSource
The abstract
keyword.
The alignof
keyword.
&
.
&&
.
&=
.
->
.
The as
keyword.
The async
keyword.
@
.
The await
keyword.
!
.
!=
.
The become
keyword.
The break
keyword.
^
.
^=
.
:
.
::
.
,
.
The const
keyword.
The continue
keyword.
The crate
keyword.
-
.
-=
.
The default
keyword.
/
.
The do
keyword.
$
.
.
.
..
.
..=
.
The else
keyword.
The enum
keyword.
=
.
==
.
The extern
keyword.
The false
keyword.
The final
keyword.
The fn
keyword.
The for
keyword.
>
.
>=
.
>>
.
>>=
.
The if
keyword.
The impl
keyword.
The in
keyword.
The is
keyword.
The let
keyword.
The loop
keyword.
<
.
<=
.
<<
.
<<=
.
The macro
keyword.
The match
keyword.
The mod
keyword.
The move
keyword.
The not
keyword.
The offsetof
keyword.
The override
keyword.
%
.
%=
.
|
.
|=`.
||
.
+
.
+=
.
#
.
The priv
keyword.
The proc
keyword.
The pub
keyword.
The pure
keyword.
?
.
The ref
keyword.
The return
keyword.
=>
.
The select
keyword.
The Self
keyword.
The self
keyword.
;
.
The sizeof
keyword.
/=
.
*
.
*=
.
The static
keyword.
The struct
keyword.
The super
keyword.
~
.
The true
keyword.
The typeof
keyword.
_
.
The unsafe
keyword.
The use
keyword.
The virtual
keyword.
The while
keyword.
The yield
keyword.
Implementations
Try to convert an identifier into a keyword.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Turn the current item into tokens.
Auto Trait Implementations
impl RefUnwindSafe for Kind
impl UnwindSafe for Kind
Blanket Implementations
Mutably borrows from an owned value. Read more