Struct evm::backend::MemoryAccount
source · pub struct MemoryAccount {
pub nonce: U256,
pub balance: U256,
pub storage: BTreeMap<H256, H256>,
pub code: Vec<u8>,
}
Expand description
Account information of a memory backend.
Fields§
§nonce: U256
Account nonce.
balance: U256
Account balance.
storage: BTreeMap<H256, H256>
Full account storage.
code: Vec<u8>
Account code.
Trait Implementations§
source§impl Clone for MemoryAccount
impl Clone for MemoryAccount
source§fn clone(&self) -> MemoryAccount
fn clone(&self) -> MemoryAccount
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 MemoryAccount
impl Debug for MemoryAccount
source§impl Default for MemoryAccount
impl Default for MemoryAccount
source§fn default() -> MemoryAccount
fn default() -> MemoryAccount
Returns the “default value” for a type. Read more
source§impl PartialEq for MemoryAccount
impl PartialEq for MemoryAccount
source§fn eq(&self, other: &MemoryAccount) -> bool
fn eq(&self, other: &MemoryAccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MemoryAccount
impl StructuralEq for MemoryAccount
impl StructuralPartialEq for MemoryAccount
Auto Trait Implementations§
impl RefUnwindSafe for MemoryAccount
impl Send for MemoryAccount
impl Sync for MemoryAccount
impl Unpin for MemoryAccount
impl UnwindSafe for MemoryAccount
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