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(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§
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 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 ==
.