Struct evm::backend::MemoryBackend [−][src]
pub struct MemoryBackend<'vicinity> { /* fields omitted */ }
Expand description
Memory backend, storing all state values in a BTreeMap
in memory.
Implementations
Create a new memory backend.
Get the underlying BTreeMap
storing the state.
Get a mutable reference to the underlying BTreeMap
storing the state.
Trait Implementations
fn apply<A, I, L>(&mut self, values: A, logs: L, delete_empty: bool) where
A: IntoIterator<Item = Apply<I>>,
I: IntoIterator<Item = (H256, H256)>,
L: IntoIterator<Item = Log>,
fn apply<A, I, L>(&mut self, values: A, logs: L, delete_empty: bool) where
A: IntoIterator<Item = Apply<I>>,
I: IntoIterator<Item = (H256, H256)>,
L: IntoIterator<Item = Log>,
Apply given values and logs at backend.
Environmental block hash.
Environmental block number.
Environmental coinbase.
Environmental block timestamp.
Environmental block difficulty.
Environmental block gas limit.
Environmental block base fee.
Auto Trait Implementations
impl<'vicinity> RefUnwindSafe for MemoryBackend<'vicinity>
impl<'vicinity> Send for MemoryBackend<'vicinity>
impl<'vicinity> Sync for MemoryBackend<'vicinity>
impl<'vicinity> Unpin for MemoryBackend<'vicinity>
impl<'vicinity> UnwindSafe for MemoryBackend<'vicinity>
Blanket Implementations
Mutably borrows from an owned value. Read more