Struct revm_primitives::state::StorageSlot
source · Fields§
§original_value: U256
§present_value: U256
When loaded with sload present value is set to original value
Implementations§
source§impl StorageSlot
impl StorageSlot
pub fn new(original: U256) -> Self
sourcepub fn is_changed(&self) -> bool
pub fn is_changed(&self) -> bool
Returns true if the present value differs from the original value
pub fn original_value(&self) -> U256
pub fn present_value(&self) -> U256
Trait Implementations§
source§impl Clone for StorageSlot
impl Clone for StorageSlot
source§fn clone(&self) -> StorageSlot
fn clone(&self) -> StorageSlot
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 StorageSlot
impl Debug for StorageSlot
source§impl Default for StorageSlot
impl Default for StorageSlot
source§fn default() -> StorageSlot
fn default() -> StorageSlot
Returns the “default value” for a type. Read more
source§impl PartialEq<StorageSlot> for StorageSlot
impl PartialEq<StorageSlot> for StorageSlot
source§fn eq(&self, other: &StorageSlot) -> bool
fn eq(&self, other: &StorageSlot) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.