pub struct StepSnapshotRef<'a> {
pub stack: &'a [Word],
pub memory: Option<&'a [u8]>,
pub storage: &'a BTreeMap<String, String>,
pub storage_diff: &'a BTreeMap<String, StorageChange>,
pub transient_storage: &'a BTreeMap<String, String>,
pub return_data: Option<&'a str>,
}Expand description
A borrowed view of one step’s captured machine state.
Serializes identically to StepSnapshot, so it can stand in wherever a snapshot is
written out. Produced by TraceStep::snapshot_ref.
Fields§
§stack: &'a [Word]§memory: Option<&'a [u8]>Memory as bytes; written out as one unprefixed lowercase hex string.
storage: &'a BTreeMap<String, String>§storage_diff: &'a BTreeMap<String, StorageChange>§transient_storage: &'a BTreeMap<String, String>§return_data: Option<&'a str>Implementations§
Source§impl StepSnapshotRef<'_>
impl StepSnapshotRef<'_>
Sourcepub fn to_owned_snapshot(&self) -> StepSnapshot
pub fn to_owned_snapshot(&self) -> StepSnapshot
Copies this view into an owned StepSnapshot.
Trait Implementations§
Source§impl<'a> Clone for StepSnapshotRef<'a>
impl<'a> Clone for StepSnapshotRef<'a>
impl<'a> Copy for StepSnapshotRef<'a>
Source§impl<'a> Debug for StepSnapshotRef<'a>
impl<'a> Debug for StepSnapshotRef<'a>
impl<'a> Eq for StepSnapshotRef<'a>
Source§impl<'a> PartialEq for StepSnapshotRef<'a>
impl<'a> PartialEq for StepSnapshotRef<'a>
Source§impl<'a> Serialize for StepSnapshotRef<'a>
impl<'a> Serialize for StepSnapshotRef<'a>
impl<'a> StructuralPartialEq for StepSnapshotRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for StepSnapshotRef<'a>
impl<'a> RefUnwindSafe for StepSnapshotRef<'a>
impl<'a> Send for StepSnapshotRef<'a>
impl<'a> Sync for StepSnapshotRef<'a>
impl<'a> Unpin for StepSnapshotRef<'a>
impl<'a> UnsafeUnpin for StepSnapshotRef<'a>
impl<'a> UnwindSafe for StepSnapshotRef<'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