Enum extendable_vm::InstructionFn [−][src]
pub enum InstructionFn<Constant, Value: Debug> { Raw { byte_arity: usize, instruction_fn: RawInstructionFn<Constant, Value>, }, Const(fn() -> Value), UnaryOp(fn(value: Value) -> Result<Value, Exception>), BinaryOp(fn(left: Value, right: Value) -> Result<Value, Exception>), }
Expand description
A function that implements a certain instruction type.
Variants
Fields of Raw
byte_arity: usize
instruction_fn: RawInstructionFn<Constant, Value>
Const(fn() -> Value)
Implementations
Trait Implementations
Auto Trait Implementations
impl<Constant, Value> RefUnwindSafe for InstructionFn<Constant, Value>
impl<Constant, Value> Send for InstructionFn<Constant, Value>
impl<Constant, Value> Sync for InstructionFn<Constant, Value>
impl<Constant, Value> Unpin for InstructionFn<Constant, Value>
impl<Constant, Value> UnwindSafe for InstructionFn<Constant, Value>
Blanket Implementations
Mutably borrows from an owned value. Read more