Struct go_vm::types::Instruction
source · pub struct Instruction {
pub op0: Opcode,
pub op1: Opcode,
pub t0: ValueType,
pub t1: ValueType,
pub d: OpIndex,
pub s0: OpIndex,
pub s1: OpIndex,
}
Fields§
§op0: Opcode
§op1: Opcode
§t0: ValueType
§t1: ValueType
§d: OpIndex
§s0: OpIndex
§s1: OpIndex
Implementations§
source§impl Instruction
impl Instruction
pub fn op1_as_t(&self) -> ValueType
pub fn max_write_index(instructions: &[Instruction]) -> OpIndex
Trait Implementations§
source§impl Clone for Instruction
impl Clone for Instruction
source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more