Struct miden_core::code_blocks::OpBatch
source · pub struct OpBatch { /* private fields */ }
Expand description
A batch of operations in a Span block.
An operation batch consists of up to 8 operation groups, with each group containing up to 9 operations or a single immediate value.
Implementations§
source§impl OpBatch
impl OpBatch
sourcepub fn groups(&self) -> &[Felt; 8]
pub fn groups(&self) -> &[Felt; 8]
Returns a list of operation groups contained in this batch.
Each group is represented by a single field element.
sourcepub fn op_counts(&self) -> &[usize; 8]
pub fn op_counts(&self) -> &[usize; 8]
Returns the number of non-decorator operations for each operation group.
Number of operations for groups containing immediate values is set to 0.
sourcepub fn num_groups(&self) -> usize
pub fn num_groups(&self) -> usize
Returns the number of groups in this batch.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for OpBatch
impl Send for OpBatch
impl Sync for OpBatch
impl Unpin for OpBatch
impl UnwindSafe for OpBatch
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