[][src]Enum rune::Kind

pub enum Kind {
    Self_,
    Fn,
    Enum,
    Struct,
    Is,
    Not,
    Let,
    If,
    Match,
    Else,
    Use,
    While,
    Loop,
    For,
    In,
    True,
    False,
    Break,
    Yield,
    Return,
    Await,
    Async,
    Select,
    Default,
    Impl,
    Ident,
    Label,
    LitNumber {
        is_fractional: bool,
        is_negative: bool,
        number: LitNumber,
    },
    LitChar,
    LitByte,
    LitStr {
        escaped: bool,
    },
    LitByteStr {
        escaped: bool,
    },
    LitTemplate {
        escaped: bool,
    },
    Open(Delimiter),
    Close(Delimiter),
    Hash,
    Dot,
    Scope,
    Underscore,
    Comma,
    Colon,
    SemiColon,
    Add,
    AddAssign,
    Sub,
    SubAssign,
    Div,
    DivAssign,
    Mul,
    MulAssign,
    Ampersand,
    Eq,
    EqEq,
    Neq,
    Rocket,
    Lt,
    Gt,
    Lte,
    Gte,
    Bang,
    Try,
    DotDot,
    And,
    Or,
    Pipe,
    Rem,
}

The kind of the token.

Variants

Self_

A self token.

Fn

An fn token.

Enum

An enum token.

Struct

A struct token.

Is

An is token.

Not

An not token.

Let

A let token.

If

An if token.

Match

A match token.

Else

An else token.

Use

An use token.

While

A while token.

Loop

A loop token.

For

A for token.

In

An in token.

True

The true literal.

False

The false literal.

Break

A break token.

Yield

A yield token.

Return

A return token.

Await

The await keyword.

Async

The async keyword.

Select

The select keyword.

Default

The default keyword.

Impl

The impl keyword.

Ident

An identifier.

Label

A label, like 'loop.

LitNumber

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

Fields of LitNumber

is_fractional: bool

Indicates if it's a decimal number.

is_negative: bool

Indicates if the number is negative.

number: LitNumber

The number literal kind.

LitChar

A characer literal.

LitByte

A byte literal.

LitStr

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

Fields of LitStr

escaped: bool

If the string literal contains escapes.

LitByteStr

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

Fields of LitByteStr

escaped: bool

If the string literal contains escapes.

LitTemplate

A template literal, including escape sequences. Like hello {name}.

Fields of LitTemplate

escaped: bool

If the template contains escapes.

Open(Delimiter)

An open delimiter: (, {, or [.

Close(Delimiter)

A close delimiter: ), }, or ].

Hash

A hash #.

Dot

A dot ..

Scope

A scope ::.

Underscore

An underscore _.

Comma

A comma ,.

Colon

A colon :.

SemiColon

A semi-colon ;.

Add

An add operator +.

AddAssign

An add assign operator +=.

Sub

A sub operator -.

SubAssign

An sub assign operator -=.

Div

A division operator /.

DivAssign

An division assign operator /=.

Mul

A multiply operator *.

MulAssign

An multiply assign operator *=.

Ampersand

An ampersand literal &.

Eq

An equals sign =.

EqEq

Two equals sign ==.

Neq

Not equals !=.

Rocket

The rocket token =>.

Lt

Less than comparison <.

Gt

Greater than comparison >.

Lte

Less than or equal comparison <=.

Gte

Greater than or equal comparison >=.

Bang

Bang operator !.

Try

Try operator ?.

DotDot

Double dots ...

And

And operator.

Or

Or operator.

Pipe

A | pipe.

Rem

A % operator.

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 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]

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,