[][src]Enum nodespeak::trivial::structure::Instruction

pub enum Instruction {
    Move {
        from: Value,
        to: Value,
    },
    Load {
        from: Value,
        from_indexes: Vec<Value>,
        to: Value,
    },
    Store {
        from: Value,
        to: Value,
        to_indexes: Vec<Value>,
    },
    UnaryOperation {
        op: UnaryOperator,
        a: Value,
        x: Value,
    },
    BinaryOperation {
        op: BinaryOperator,
        a: Value,
        b: Value,
        x: Value,
    },
    Label(LabelId),
    Jump {
        label: LabelId,
    },
    Branch {
        condition: Value,
        true_target: LabelId,
        false_target: LabelId,
    },
    Abort(u32),
}

Variants

Move

Fields of Move

from: Valueto: Value
Load

Fields of Load

from: Valuefrom_indexes: Vec<Value>to: Value
Store

Fields of Store

from: Valueto: Valueto_indexes: Vec<Value>
UnaryOperation

Fields of UnaryOperation

op: UnaryOperatora: Valuex: Value
BinaryOperation

Fields of BinaryOperation

op: BinaryOperatora: Valueb: Valuex: Value
Label(LabelId)
Jump

Fields of Jump

label: LabelId
Branch

Fields of Branch

condition: Valuetrue_target: LabelIdfalse_target: LabelId
Abort(u32)

Trait Implementations

impl Debug for Instruction[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, 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.