Enum liva_parser::statement::Statement[][src]

pub enum Statement<'a> {
    Assignment(Assignment<'a>),
    LAssignment(LAssignment<'a>),
    FuncCall(PrefixExpr<'a>),
    While(While<'a>),
    For(For<'a>),
    If(If<'a>),
    Fun(Function<'a>),
    Class(Class<'a>),
    Return(ReturnStmt<'a>),
    Import(Import<'a>),
}

Variants

Assignment(Assignment<'a>)

Tuple Fields of Assignment

0: Assignment<'a>
LAssignment(LAssignment<'a>)

Tuple Fields of LAssignment

0: LAssignment<'a>
FuncCall(PrefixExpr<'a>)

Tuple Fields of FuncCall

0: PrefixExpr<'a>
While(While<'a>)

Tuple Fields of While

0: While<'a>
For(For<'a>)

Tuple Fields of For

0: For<'a>
If(If<'a>)

Tuple Fields of If

0: If<'a>
Fun(Function<'a>)

Tuple Fields of Fun

0: Function<'a>
Class(Class<'a>)

Tuple Fields of Class

0: Class<'a>
Return(ReturnStmt<'a>)

Tuple Fields of Return

0: ReturnStmt<'a>
Import(Import<'a>)

Tuple Fields of Import

0: Import<'a>

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

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

This method tests for !=.

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

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.