Struct air_ir::TraceAccess
source · pub struct TraceAccess {
pub segment: TraceSegmentId,
pub column: TraceColumnIndex,
pub row_offset: usize,
}
Expand description
TraceAccess is like [SymbolAccess], but is used to describe an access to a specific trace column or columns.
Fields§
§segment: TraceSegmentId
The trace segment being accessed
column: TraceColumnIndex
The index of the first column at which the access begins
row_offset: usize
The offset from the current row.
Defaults to 0, which indicates no offset/the current row.
For example, if accessing a trace column with a'
, where a
is bound to a single column,
the row offset would be 1
, as the '
modifier indicates the “next” row.
Implementations§
source§impl TraceAccess
impl TraceAccess
sourcepub const fn new(
segment: TraceSegmentId,
column: TraceColumnIndex,
row_offset: usize
) -> Self
pub const fn new( segment: TraceSegmentId, column: TraceColumnIndex, row_offset: usize ) -> Self
Creates a new TraceAccess.
sourcepub fn clone_with_offsets(&self, offsets: &[Vec<usize>]) -> Self
pub fn clone_with_offsets(&self, offsets: &[Vec<usize>]) -> Self
Creates a new TraceAccess with a new column index that is updated according to the provided offsets. All other data is left unchanged.
Trait Implementations§
source§impl Clone for TraceAccess
impl Clone for TraceAccess
source§fn clone(&self) -> TraceAccess
fn clone(&self) -> TraceAccess
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 TraceAccess
impl Debug for TraceAccess
source§impl PartialEq<TraceAccess> for TraceAccess
impl PartialEq<TraceAccess> for TraceAccess
source§fn eq(&self, other: &TraceAccess) -> bool
fn eq(&self, other: &TraceAccess) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TraceAccess
impl Eq for TraceAccess
impl StructuralEq for TraceAccess
impl StructuralPartialEq for TraceAccess
Auto Trait Implementations§
impl RefUnwindSafe for TraceAccess
impl Send for TraceAccess
impl Sync for TraceAccess
impl Unpin for TraceAccess
impl UnwindSafe for TraceAccess
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.