#[repr(u32)]pub enum evmc_storage_status {
EVMC_STORAGE_UNCHANGED = 0,
EVMC_STORAGE_MODIFIED = 1,
EVMC_STORAGE_MODIFIED_AGAIN = 2,
EVMC_STORAGE_ADDED = 3,
EVMC_STORAGE_DELETED = 4,
}Expand description
The effect of an attempt to modify a contract storage item.
For the purpose of explaining the meaning of each element, the following notation is used:
- 0 is zero value,
- X != 0 (X is any value other than 0),
- Y != X, Y != 0 (Y is any value other than X and 0),
- Z != Y (Z is any value other than Y),
- the “->” means the change from one value to another.
Variants§
EVMC_STORAGE_UNCHANGED = 0
The value of a storage item has been left unchanged: 0 -> 0 and X -> X.
EVMC_STORAGE_MODIFIED = 1
The value of a storage item has been modified: X -> Y.
EVMC_STORAGE_MODIFIED_AGAIN = 2
A storage item has been modified after being modified before: X -> Y -> Z.
EVMC_STORAGE_ADDED = 3
A new storage item has been added: 0 -> X.
EVMC_STORAGE_DELETED = 4
A storage item has been deleted: X -> 0.
Trait Implementations§
Source§impl Clone for evmc_storage_status
impl Clone for evmc_storage_status
Source§fn clone(&self) -> evmc_storage_status
fn clone(&self) -> evmc_storage_status
Returns a duplicate 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 evmc_storage_status
impl Debug for evmc_storage_status
Source§impl Hash for evmc_storage_status
impl Hash for evmc_storage_status
Source§impl PartialEq for evmc_storage_status
impl PartialEq for evmc_storage_status
impl Copy for evmc_storage_status
impl Eq for evmc_storage_status
impl StructuralPartialEq for evmc_storage_status
Auto Trait Implementations§
impl Freeze for evmc_storage_status
impl RefUnwindSafe for evmc_storage_status
impl Send for evmc_storage_status
impl Sync for evmc_storage_status
impl Unpin for evmc_storage_status
impl UnwindSafe for evmc_storage_status
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