pub struct IndexedTraceAccess { /* private fields */ }
Expand description
IndexedTraceAccess is used to represent accessing an element in the execution trace during
constraint evaluation. The trace_segment specifies
how many trace commitments have preceded the specified segment. col_idx
specifies the index
of the column within that trace segment, and row_offset
specifies the offset from the current
row. For example, an element in the “next” row of the “main” trace would be specified by
a trace_segment of 0 and a row_offset of 1.
Implementations§
Source§impl IndexedTraceAccess
impl IndexedTraceAccess
pub fn new( trace_segment: TraceSegment, col_idx: usize, row_offset: usize, ) -> Self
Sourcepub fn trace_segment(&self) -> TraceSegment
pub fn trace_segment(&self) -> TraceSegment
Gets the trace segment of this IndexedTraceAccess.
Sourcepub fn col_idx(&self) -> usize
pub fn col_idx(&self) -> usize
Gets the column index of this IndexedTraceAccess.
Sourcepub fn row_offset(&self) -> usize
pub fn row_offset(&self) -> usize
Gets the row offset of this IndexedTraceAccess.
Trait Implementations§
Source§impl Clone for IndexedTraceAccess
impl Clone for IndexedTraceAccess
Source§fn clone(&self) -> IndexedTraceAccess
fn clone(&self) -> IndexedTraceAccess
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 IndexedTraceAccess
impl Debug for IndexedTraceAccess
Source§impl PartialEq for IndexedTraceAccess
impl PartialEq for IndexedTraceAccess
impl Copy for IndexedTraceAccess
impl Eq for IndexedTraceAccess
impl StructuralPartialEq for IndexedTraceAccess
Auto Trait Implementations§
impl Freeze for IndexedTraceAccess
impl RefUnwindSafe for IndexedTraceAccess
impl Send for IndexedTraceAccess
impl Sync for IndexedTraceAccess
impl Unpin for IndexedTraceAccess
impl UnwindSafe for IndexedTraceAccess
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