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

Eof

En end-of-file marker.

Error

En error marker.

Close

A close delimiter: ), }, or ].

Tuple Fields of Close

0: Delimiter
Open

An open delimiter: (, {, or [.

Tuple Fields of Open

0: Delimiter
Ident

An identifier.

Tuple Fields of Ident

0: StringSource
Label

A label, like 'loop.

Tuple Fields of Label

0: StringSource
Byte

A byte literal.

Tuple Fields of Byte

0: CopySource<u8>
ByteStr

A byte string literal, including escape sequences. Like b"hello\nworld".

Tuple Fields of ByteStr

0: StrSource
Char

A characer literal.

Tuple Fields of Char

0: CopySource<char>
Number

A number literal, like 42 or 3.14 or 0xff.

Tuple Fields of Number

0: NumberSource
Str

A string literal, including escape sequences. Like "hello\nworld".

Tuple Fields of Str

0: StrSource
Abstract

The abstract keyword.

AlignOf

The alignof keyword.

Amp

&.

AmpAmp

&&.

AmpEq

&=.

Arrow

->.

As

The as keyword.

Async

The async keyword.

At

@.

Await

The await keyword.

Bang

!.

BangEq

!=.

Become

The become keyword.

Break

The break keyword.

Caret

^.

CaretEq

^=.

Colon

:.

ColonColon

::.

Comma

,.

Const

The const keyword.

Continue

The continue keyword.

Crate

The crate keyword.

Dash

-.

DashEq

-=.

Default

The default keyword.

Div

/.

Do

The do keyword.

Dollar

$.

Dot

..

DotDot

...

DotDotEq

..=.

Else

The else keyword.

Enum

The enum keyword.

Eq

=.

EqEq

==.

Extern

The extern keyword.

False

The false keyword.

Final

The final keyword.

Fn

The fn keyword.

For

The for keyword.

Gt

>.

GtEq

>=.

GtGt

>>.

GtGtEq

>>=.

If

The if keyword.

Impl

The impl keyword.

In

The in keyword.

Is

The is keyword.

Let

The let keyword.

Loop

The loop keyword.

Lt

<.

LtEq

<=.

LtLt

<<.

LtLtEq

<<=.

Macro

The macro keyword.

Match

The match keyword.

Mod

The mod keyword.

Move

The move keyword.

Not

The not keyword.

OffsetOf

The offsetof keyword.

Override

The override keyword.

Perc

%.

PercEq

%=.

Pipe

|.

PipeEq

|=`.

PipePipe

||.

Plus

+.

PlusEq

+=.

Pound

#.

Priv

The priv keyword.

Proc

The proc keyword.

Pub

The pub keyword.

Pure

The pure keyword.

QuestionMark

?.

Ref

The ref keyword.

Return

The return keyword.

Rocket

=>.

Select

The select keyword.

SelfType

The Self keyword.

SelfValue

The self keyword.

SemiColon

;.

SizeOf

The sizeof keyword.

SlashEq

/=.

Star

*.

StarEq

*=.

Static

The static keyword.

Struct

The struct keyword.

Super

The super keyword.

Tilde

~.

True

The true keyword.

TypeOf

The typeof keyword.

Underscore

_.

Unsafe

The unsafe keyword.

Use

The use keyword.

Virtual

The virtual keyword.

While

The while keyword.

Yield

The yield keyword.

Implementations

Try to convert an identifier into a keyword.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Turn the current item into tokens.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.