Struct cairo_vm::types::instruction::Instruction
source · pub struct Instruction {
pub off0: isize,
pub off1: isize,
pub off2: isize,
pub imm: Option<Felt>,
pub dst_register: Register,
pub op0_register: Register,
pub op1_addr: Op1Addr,
pub res: Res,
pub pc_update: PcUpdate,
pub ap_update: ApUpdate,
pub fp_update: FpUpdate,
pub opcode: Opcode,
}Fields§
§off0: isize§off1: isize§off2: isize§imm: Option<Felt>§dst_register: Register§op0_register: Register§op1_addr: Op1Addr§res: Res§pc_update: PcUpdate§ap_update: ApUpdate§fp_update: FpUpdate§opcode: OpcodeImplementations§
Trait Implementations§
source§impl Debug for Instruction
impl Debug for Instruction
source§impl PartialEq<Instruction> for Instruction
impl PartialEq<Instruction> for Instruction
source§fn eq(&self, other: &Instruction) -> bool
fn eq(&self, other: &Instruction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Instruction
impl StructuralEq for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.