pub struct StepSnapshot {
pub stack: Vec<Word>,
pub memory: Option<Arc<str>>,
pub storage: Arc<BTreeMap<String, String>>,
pub storage_diff: BTreeMap<String, StorageChange>,
}Expand description
The machine state one step captured.
memory and storage are shared: a backend building steps hands the previous step’s
value on unchanged, so a trace holds one copy of memory per change rather than one
per step. Reads see plain values through Deref; a step that changes them gets its
own.
Fields§
§stack: Vec<Word>§memory: Option<Arc<str>>Memory as one unprefixed hex string.
storage: Arc<BTreeMap<String, String>>§storage_diff: BTreeMap<String, StorageChange>Implementations§
Trait Implementations§
Source§impl Clone for StepSnapshot
impl Clone for StepSnapshot
Source§fn clone(&self) -> StepSnapshot
fn clone(&self) -> StepSnapshot
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 StepSnapshot
impl Debug for StepSnapshot
Source§impl Default for StepSnapshot
impl Default for StepSnapshot
Source§fn default() -> StepSnapshot
fn default() -> StepSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepSnapshot
impl<'de> Deserialize<'de> for StepSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StepSnapshot
Source§impl PartialEq for StepSnapshot
impl PartialEq for StepSnapshot
Source§impl Serialize for StepSnapshot
impl Serialize for StepSnapshot
impl StructuralPartialEq for StepSnapshot
Auto Trait Implementations§
impl Freeze for StepSnapshot
impl RefUnwindSafe for StepSnapshot
impl Send for StepSnapshot
impl Sync for StepSnapshot
impl Unpin for StepSnapshot
impl UnsafeUnpin for StepSnapshot
impl UnwindSafe for StepSnapshot
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