Struct cairo_lang_casm::assembler::InstructionRepr
source · pub struct InstructionRepr {
pub off0: i16,
pub off1: i16,
pub off2: i16,
pub imm: Option<BigInt>,
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,
}
Expand description
The low level representation of a cairo instruction.
Fields§
§off0: i16
§off1: i16
§off2: i16
§imm: Option<BigInt>
§dst_register: Register
§op0_register: Register
§op1_addr: Op1Addr
§res: Res
§pc_update: PcUpdate
§ap_update: ApUpdate
§fp_update: FpUpdate
§opcode: Opcode
Implementations§
Trait Implementations§
source§impl Debug for InstructionRepr
impl Debug for InstructionRepr
source§impl PartialEq for InstructionRepr
impl PartialEq for InstructionRepr
source§fn eq(&self, other: &InstructionRepr) -> bool
fn eq(&self, other: &InstructionRepr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InstructionRepr
impl StructuralEq for InstructionRepr
impl StructuralPartialEq for InstructionRepr
Auto Trait Implementations§
impl RefUnwindSafe for InstructionRepr
impl Send for InstructionRepr
impl Sync for InstructionRepr
impl Unpin for InstructionRepr
impl UnwindSafe for InstructionRepr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.