pub struct StorageTape { /* private fields */ }Expand description
Every storage word a trace recorded, by storage context and slot.
Implementations§
Source§impl StorageTape
impl StorageTape
Sourcepub fn new(trace: &TransactionTrace, map: &StepMap) -> Self
pub fn new(trace: &TransactionTrace, map: &StepMap) -> Self
Indexes every storage word trace recorded, in the storage context map
computed for the step that recorded it.
Sourcepub fn transient(trace: &TransactionTrace, map: &StepMap) -> Self
pub fn transient(trace: &TransactionTrace, map: &StepMap) -> Self
Indexes every transient storage word trace recorded, the same way.
Sourcepub fn persistent_and_transient(
trace: &TransactionTrace,
map: &StepMap,
) -> (Self, Self)
pub fn persistent_and_transient( trace: &TransactionTrace, map: &StepMap, ) -> (Self, Self)
Both tapes, StorageTape::new and StorageTape::transient, from one walk
over the steps.
Sourcepub fn at(&self, step: usize, context: Option<usize>) -> StorageWords<'_>
pub fn at(&self, step: usize, context: Option<usize>) -> StorageWords<'_>
The words known at step, in storage context context.
Sourcepub fn at_step<'a>(&'a self, map: &'a StepMap, step: usize) -> StorageWords<'a>
pub fn at_step<'a>(&'a self, map: &'a StepMap, step: usize) -> StorageWords<'a>
The words known at step, in the storage context that step runs in, with the
address of that context so a ChainStorage can be asked about its slots.
Trait Implementations§
Source§impl Clone for StorageTape
impl Clone for StorageTape
Source§impl Debug for StorageTape
impl Debug for StorageTape
impl Eq for StorageTape
Source§impl PartialEq for StorageTape
impl PartialEq for StorageTape
impl StructuralPartialEq for StorageTape
Auto Trait Implementations§
impl Freeze for StorageTape
impl RefUnwindSafe for StorageTape
impl Send for StorageTape
impl Sync for StorageTape
impl Unpin for StorageTape
impl UnsafeUnpin for StorageTape
impl UnwindSafe for StorageTape
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