Enum rune::ast::generated::Kind[][src]

pub enum Kind {
    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,
}

The kind of the token.

Variants

Eof

En end-of-file marker.

Error

En error marker.

Close(Delimiter)

A close delimiter: ), }, or ].

Open(Delimiter)

An open delimiter: (, {, or [.

An identifier.

A label, like 'loop.

Byte(CopySource<u8>)

A byte literal.

ByteStr(StrSource)

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

A characer literal.

Number(NumberSource)

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

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

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

impl Kind[src]

pub fn from_keyword(ident: &str) -> Option<Self>[src]

Try to convert an identifier into a keyword.

Trait Implementations

impl Clone for Kind[src]

impl Copy for Kind[src]

impl Debug for Kind[src]

impl Display for Kind[src]

impl Eq for Kind[src]

impl From<Token> for Kind[src]

impl Hash for Kind[src]

impl Ord for Kind[src]

impl PartialEq<Kind> for Kind[src]

impl PartialOrd<Kind> for Kind[src]

impl StructuralEq for Kind[src]

impl StructuralPartialEq for Kind[src]

impl ToTokens for Kind[src]

Auto Trait Implementations

impl RefUnwindSafe for Kind

impl Send for Kind

impl Sync for Kind

impl Unpin for Kind

impl UnwindSafe for Kind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.