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 ops(&self) -> &[Operation]
pub fn ops(&self) -> &[Operation]
Returns a list of operations contained in this batch.
Note: the processor will insert NOOP operations to fill out the groups, so the true number of operations in the batch may be larger than the number of operations reported by this method.
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§
impl Eq for OpBatch
impl StructuralPartialEq for OpBatch
Auto Trait Implementations§
impl Freeze for OpBatch
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