pub struct TraceEvent { /* private fields */ }Expand description
v0.2.2 Phase E: a single event in a derivation Trace.
Fixed-size event; content-addressed so Trace replays are stable
across builds. The verifier in uor-foundation-verify (Phase H)
reconstructs the witness chain by walking a Trace iterator.
Implementations§
Source§impl TraceEvent
impl TraceEvent
Sourcepub const fn step_index(&self) -> u32
pub const fn step_index(&self) -> u32
Returns the step index.
Sourcepub const fn op(&self) -> PrimitiveOp
pub const fn op(&self) -> PrimitiveOp
Returns the primitive op applied at this step.
Sourcepub const fn target(&self) -> ContentAddress
pub const fn target(&self) -> ContentAddress
Returns the content-hashed target address.
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraceEvent
impl Debug for TraceEvent
Source§impl Hash for TraceEvent
impl Hash for TraceEvent
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
Source§fn eq(&self, other: &TraceEvent) -> bool
fn eq(&self, other: &TraceEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TraceEvent
impl Eq for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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