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§
source§impl AssemblyOp
impl AssemblyOp
sourcepub fn new(
context_name: String,
num_cycles: u8,
op: String,
should_break: bool
) -> Self
pub fn new( context_name: String, num_cycles: u8, op: String, should_break: bool ) -> Self
Returns AssemblyOp instantiated with the specified assembly instruction string and number of cycles it takes to execute the assembly instruction.
sourcepub fn context_name(&self) -> &str
pub fn context_name(&self) -> &str
Returns the context name for this operation.
sourcepub const fn num_cycles(&self) -> u8
pub const fn num_cycles(&self) -> u8
Returns the number of VM cycles taken to execute the assembly instruction of this decorator.
sourcepub const fn should_break(&self) -> bool
pub const fn should_break(&self) -> bool
Returns true
if there is a breakpoint for the current operation.
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§
source§impl Clone for AssemblyOp
impl Clone for AssemblyOp
source§fn clone(&self) -> AssemblyOp
fn clone(&self) -> AssemblyOp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AssemblyOp
impl Debug for AssemblyOp
source§impl Display for AssemblyOp
impl Display for AssemblyOp
source§impl PartialEq<AssemblyOp> for AssemblyOp
impl PartialEq<AssemblyOp> for AssemblyOp
source§fn eq(&self, other: &AssemblyOp) -> bool
fn eq(&self, other: &AssemblyOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.