Struct zk_evm::testing::storage::InMemoryStorage
source · pub struct InMemoryStorage {
pub inner: [HashMap<Address, HashMap<U256, U256>>; 2],
pub cold_warm_markers: [HashMap<Address, HashSet<U256>>; 2],
pub frames_stack: Vec<ApplicationData<LogQuery>>,
}
Fields§
§inner: [HashMap<Address, HashMap<U256, U256>>; 2]
§cold_warm_markers: [HashMap<Address, HashSet<U256>>; 2]
§frames_stack: Vec<ApplicationData<LogQuery>>
Implementations§
Trait Implementations§
source§impl Clone for InMemoryStorage
impl Clone for InMemoryStorage
source§fn clone(&self) -> InMemoryStorage
fn clone(&self) -> InMemoryStorage
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 InMemoryStorage
impl Debug for InMemoryStorage
source§impl Storage for InMemoryStorage
impl Storage for InMemoryStorage
fn estimate_refunds_for_write( &mut self, _monotonic_cycle_counter: u32, _partial_query: &LogQuery, ) -> RefundType
fn execute_partial_query( &mut self, _monotonic_cycle_counter: u32, query: LogQuery, ) -> LogQuery
fn start_frame(&mut self, _timestamp: Timestamp)
fn finish_frame(&mut self, _timestamp: Timestamp, panicked: bool)
Auto Trait Implementations§
impl Freeze for InMemoryStorage
impl RefUnwindSafe for InMemoryStorage
impl Send for InMemoryStorage
impl Sync for InMemoryStorage
impl Unpin for InMemoryStorage
impl UnwindSafe for InMemoryStorage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)