[][src]Enum cart_tmp_nga::Statement

pub enum Statement {
    Empty,
    Block(Block),
    If {
        condition: Handle<Expression>,
        accept: Block,
        reject: Block,
    },
    Switch {
        selector: Handle<Expression>,
        cases: FastHashMap<i32, (Block, Option<FallThrough>)>,
        default: Block,
    },
    Loop {
        body: Block,
        continuing: Block,
    },
    Break,
    Continue,
    Return {
        value: Option<Handle<Expression>>,
    },
    Kill,
    Store {
        pointer: Handle<Expression>,
        value: Handle<Expression>,
    },
}

Variants

Empty
Block(Block)
If

Fields of If

condition: Handle<Expression>accept: Blockreject: Block
Switch

Fields of Switch

selector: Handle<Expression>cases: FastHashMap<i32, (Block, Option<FallThrough>)>default: Block
Loop

Fields of Loop

body: Blockcontinuing: Block
Break
Continue
Return

Fields of Return

value: Option<Handle<Expression>>
Kill
Store

Fields of Store

pointer: Handle<Expression>value: Handle<Expression>

Trait Implementations

impl Clone for Statement[src]

impl Debug for Statement[src]

Auto Trait Implementations

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