pub struct SlotChanges {
pub slot: U256,
pub changes: Vec<StorageChange>,
}Expand description
All writes to one slot within the block.
Fields§
§slot: U256Slot key.
changes: Vec<StorageChange>Sorted by block_access_index, non-empty.
Implementations§
Source§impl SlotChanges
impl SlotChanges
Sourcepub fn final_change(&self) -> &StorageChange
pub fn final_change(&self) -> &StorageChange
Last write in block order — the end-of-block value.
Validation guarantees changes is non-empty; a SlotChanges built by
hand with no changes yields a zero change rather than a panic.
Trait Implementations§
Source§impl Clone for SlotChanges
impl Clone for SlotChanges
Source§fn clone(&self) -> SlotChanges
fn clone(&self) -> SlotChanges
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 SlotChanges
impl Debug for SlotChanges
Source§impl Decodable for SlotChanges
impl Decodable for SlotChanges
Source§impl Encodable for SlotChanges
impl Encodable for SlotChanges
impl Eq for SlotChanges
Source§impl PartialEq for SlotChanges
impl PartialEq for SlotChanges
impl StructuralPartialEq for SlotChanges
Auto Trait Implementations§
impl Freeze for SlotChanges
impl RefUnwindSafe for SlotChanges
impl Send for SlotChanges
impl Sync for SlotChanges
impl Unpin for SlotChanges
impl UnsafeUnpin for SlotChanges
impl UnwindSafe for SlotChanges
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