Struct vm::access_list::AccessList
source · [−]pub struct AccessList { /* private fields */ }
Implementations
sourceimpl AccessList
impl AccessList
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns if the list is enabled
sourcepub fn contains_storage_key(&self, address: &Address, key: &H256) -> bool
pub fn contains_storage_key(&self, address: &Address, key: &H256) -> bool
Checks if contains an storage key
sourcepub fn insert_storage_key(&mut self, address: Address, key: H256)
pub fn insert_storage_key(&mut self, address: Address, key: H256)
Inserts a storage key
sourcepub fn contains_address(&self, address: &Address) -> bool
pub fn contains_address(&self, address: &Address) -> bool
Checks if contains an address
sourcepub fn insert_address(&mut self, address: Address)
pub fn insert_address(&mut self, address: Address)
Inserts an address
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AccessList
impl !Send for AccessList
impl !Sync for AccessList
impl Unpin for AccessList
impl !UnwindSafe for AccessList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more