Struct miden_objects::accounts::delta::StorageMapDelta
source · pub struct StorageMapDelta {
pub cleared_leaves: Vec<Word>,
pub updated_leaves: Vec<(Word, Word)>,
}Expand description
StorageMapDelta stores the differences between two states of account storage maps.
The differences are represented as follows:
- leave updates: represented by
cleared_leavesandupdated_leavesfield.
Fields§
§cleared_leaves: Vec<Word>§updated_leaves: Vec<(Word, Word)>Implementations§
source§impl StorageMapDelta
impl StorageMapDelta
sourcepub fn from(
cleared_leaves: Vec<Word>,
updated_leaves: Vec<(Word, Word)>,
) -> Self
pub fn from( cleared_leaves: Vec<Word>, updated_leaves: Vec<(Word, Word)>, ) -> Self
Creates a new storage map delta from the provided cleared and updated leaves.
Trait Implementations§
source§impl Clone for StorageMapDelta
impl Clone for StorageMapDelta
source§fn clone(&self) -> StorageMapDelta
fn clone(&self) -> StorageMapDelta
Returns a copy of the value. Read more
1.0.0 · 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 StorageMapDelta
impl Debug for StorageMapDelta
source§impl Default for StorageMapDelta
impl Default for StorageMapDelta
source§fn default() -> StorageMapDelta
fn default() -> StorageMapDelta
Returns the “default value” for a type. Read more
source§impl Deserializable for StorageMapDelta
impl Deserializable for StorageMapDelta
source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl PartialEq for StorageMapDelta
impl PartialEq for StorageMapDelta
source§fn eq(&self, other: &StorageMapDelta) -> bool
fn eq(&self, other: &StorageMapDelta) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for StorageMapDelta
impl Serializable for StorageMapDelta
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Eq for StorageMapDelta
impl StructuralPartialEq for StorageMapDelta
Auto Trait Implementations§
impl Freeze for StorageMapDelta
impl RefUnwindSafe for StorageMapDelta
impl Send for StorageMapDelta
impl Sync for StorageMapDelta
impl Unpin for StorageMapDelta
impl UnwindSafe for StorageMapDelta
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)