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.