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
impl Eq for InstructionRepr
impl StructuralPartialEq for InstructionRepr
Auto Trait Implementations§
impl Freeze for InstructionRepr
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more