Struct air_script_core::IndexedTraceAccess
source · 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<IndexedTraceAccess> for IndexedTraceAccess
impl PartialEq<IndexedTraceAccess> for IndexedTraceAccess
source§fn eq(&self, other: &IndexedTraceAccess) -> bool
fn eq(&self, other: &IndexedTraceAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.