pub struct StepView<'a> { /* private fields */ }Expand description
One step of a StepTable.
Implementations§
Source§impl<'a> StepView<'a>
impl<'a> StepView<'a>
pub fn pc(&self) -> u64
Sourcepub fn op(&self) -> u8
pub fn op(&self) -> u8
The opcode byte. A step whose backend spelled its mnemonic in a way no opcode is
spelled has opcode::INVALID; StepView::mnemonic still has the spelling.
pub fn gas(&self) -> u64
Sourcepub fn gas_cost(&self) -> u64
pub fn gas_cost(&self) -> u64
The cost as the tracer reports it; see TraceStep::gas_cost.
pub fn depth(&self) -> u64
pub fn error(&self) -> Option<&'a str>
pub fn stack(&self) -> Stack<'a>
Sourcepub fn memory(&self) -> Option<Bytes>
pub fn memory(&self) -> Option<Bytes>
The memory the step starts with; None when the backend did not record memory.
The bytes are shared with the trace when it holds them in full, and rebuilt from
the writes before the step otherwise.
Sourcepub fn storage(&self) -> &'a BTreeMap<String, String>
pub fn storage(&self) -> &'a BTreeMap<String, String>
The storage the backend reported for the step.
Sourcepub fn storage_diff(&self) -> &'a BTreeMap<String, StorageChange>
pub fn storage_diff(&self) -> &'a BTreeMap<String, StorageChange>
The slots the step changed.
Sourcepub fn transient_storage(&self) -> &'a BTreeMap<String, String>
pub fn transient_storage(&self) -> &'a BTreeMap<String, String>
The transient slots the step read or wrote, with their value after it.
Sourcepub fn return_data(&self) -> Option<&'a str>
pub fn return_data(&self) -> Option<&'a str>
The return data buffer before the step, as unprefixed hex; None when empty.
Sourcepub fn to_trace_step(&self) -> TraceStep
pub fn to_trace_step(&self) -> TraceStep
The step as a TraceStep of its own.
Trait Implementations§
impl<'a> Copy for StepView<'a>
impl Eq for StepView<'_>
Auto Trait Implementations§
impl<'a> Freeze for StepView<'a>
impl<'a> RefUnwindSafe for StepView<'a>
impl<'a> Send for StepView<'a>
impl<'a> Sync for StepView<'a>
impl<'a> Unpin for StepView<'a>
impl<'a> UnsafeUnpin for StepView<'a>
impl<'a> UnwindSafe for StepView<'a>
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