Struct miden_processor::AsmOpInfo
source · pub struct AsmOpInfo { /* private fields */ }Expand description
Contains assembly instruction and operation index in the sequence corresponding to the specified AsmOp decorator. This index starts from 1 instead of 0.
Implementations
sourceimpl AsmOpInfo
impl AsmOpInfo
sourcepub fn new(op: String, num_cycles: u8, cycle_idx: u8) -> Self
pub fn new(op: String, num_cycles: u8, cycle_idx: u8) -> Self
Returns AsmOpInfo instantiated with the specified assembly instruction string, number of cycles it takes to execute the assembly instruction and op index in sequence of operations corresponding to the current assembly instruction. The first index is 1 instead of 0.
sourcepub fn op_generalized(&self) -> String
pub fn op_generalized(&self) -> String
Returns the gerneralized form of assembly instruction corresponding to this state.
sourcepub fn num_cycles(&self) -> u8
pub fn num_cycles(&self) -> u8
Returns the number of VM cycles taken to execute the assembly instruction.
Trait Implementations
impl Eq for AsmOpInfo
impl StructuralEq for AsmOpInfo
impl StructuralPartialEq for AsmOpInfo
Auto Trait Implementations
impl RefUnwindSafe for AsmOpInfo
impl Send for AsmOpInfo
impl Sync for AsmOpInfo
impl Unpin for AsmOpInfo
impl UnwindSafe for AsmOpInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more