Struct miden_core::AssemblyOp
source · pub struct AssemblyOp { /* private fields */ }
Expand description
Contains information corresponding to an assembly instruction (only applicable in debug mode).
Implementations
sourceimpl AssemblyOp
impl AssemblyOp
sourcepub fn new(op: String, num_cycles: u8) -> Self
pub fn new(op: String, num_cycles: u8) -> Self
Returns AssemblyOp instantiated with the specified assembly instruction string and number of cycles it takes to execute the assembly instruction.
sourcepub fn num_cycles(&self) -> u8
pub fn num_cycles(&self) -> u8
Returns the number of VM cycles taken to execute the assembly instruction of this decorator.
sourcepub fn set_num_cycles(&mut self, num_cycles: u8)
pub fn set_num_cycles(&mut self, num_cycles: u8)
Change cycles corresponding to an AsmOp decorator to the specified number of cycles.
Trait Implementations
sourceimpl Clone for AssemblyOp
impl Clone for AssemblyOp
sourcefn clone(&self) -> AssemblyOp
fn clone(&self) -> AssemblyOp
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AssemblyOp
impl Debug for AssemblyOp
sourceimpl PartialEq<AssemblyOp> for AssemblyOp
impl PartialEq<AssemblyOp> for AssemblyOp
sourcefn eq(&self, other: &AssemblyOp) -> bool
fn eq(&self, other: &AssemblyOp) -> bool
impl Eq for AssemblyOp
impl StructuralEq for AssemblyOp
impl StructuralPartialEq for AssemblyOp
Auto Trait Implementations
impl RefUnwindSafe for AssemblyOp
impl Send for AssemblyOp
impl Sync for AssemblyOp
impl Unpin for AssemblyOp
impl UnwindSafe for AssemblyOp
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