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