[][src]Enum rune::Kind

pub enum Kind {
    Fn,
    Is,
    Let,
    If,
    Match,
    Else,
    Use,
    While,
    Loop,
    For,
    In,
    True,
    False,
    Break,
    Return,
    Ident,
    Label,
    LitNumber {
        is_fractional: bool,
        is_negative: bool,
        number: LitNumber,
    },
    LitChar,
    LitStr {
        escaped: bool,
    },
    Open {
        delimiter: Delimiter,
    },
    Close {
        delimiter: Delimiter,
    },
    Dot,
    Scope,
    Underscore,
    Comma,
    Colon,
    SemiColon,
    Add,
    AddAssign,
    Sub,
    SubAssign,
    Div,
    DivAssign,
    Mul,
    MulAssign,
    Ampersand,
    Eq,
    EqEq,
    Neq,
    Rocket,
    Lt,
    Gt,
    Lte,
    Gte,
    Not,
    StartObject,
    DotDot,
    And,
    Or,
}

The kind of the token.

Variants

Fn

An fn token.

Is

An is 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.

Return

A return token.

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.

LitStr

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

Fields of LitStr

escaped: bool

If the string literal contains escapes.

Open

An open delimiter: (, {, or [.

Fields of Open

delimiter: Delimiter

The delimiter being opened.

Close

A close delimiter: ), }, or ].

Fields of Close

delimiter: Delimiter

The delimiter being closed.

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 >=.

Not

Not operator !.

StartObject

A start object indicator #{.

DotDot

Double dots ...

And

And operator.

Or

Or 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<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>,