pub struct StorageMap<K: WordKey, V: WordValue> {
pub slot: StorageSlotId,
/* private fields */
}Expand description
Typed access to an account storage map.
Fields§
§slot: StorageSlotIdThe underlying storage slot id.
Implementations§
Source§impl<K: WordKey, V: WordValue> StorageMap<K, V>
impl<K: WordKey, V: WordValue> StorageMap<K, V>
Sourcepub const fn new(slot: StorageSlotId) -> Self
pub const fn new(slot: StorageSlotId) -> Self
Creates a new typed storage map handle for slot.
Trait Implementations§
Source§impl<K: Clone + WordKey, V: Clone + WordValue> Clone for StorageMap<K, V>
impl<K: Clone + WordKey, V: Clone + WordValue> Clone for StorageMap<K, V>
Source§fn clone(&self) -> StorageMap<K, V>
fn clone(&self) -> StorageMap<K, V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<K: Copy + WordKey, V: Copy + WordValue> Copy for StorageMap<K, V>
impl<K: Eq + WordKey, V: Eq + WordValue> Eq for StorageMap<K, V>
Source§impl<K: WordKey, V: WordValue> From<StorageSlotId> for StorageMap<K, V>
impl<K: WordKey, V: WordValue> From<StorageSlotId> for StorageMap<K, V>
Source§fn from(slot: StorageSlotId) -> Self
fn from(slot: StorageSlotId) -> Self
Converts to this type from the input type.
impl<K: PartialEq + WordKey, V: PartialEq + WordValue> StructuralPartialEq for StorageMap<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for StorageMap<K, V>
impl<K, V> RefUnwindSafe for StorageMap<K, V>
impl<K, V> Send for StorageMap<K, V>
impl<K, V> Sync for StorageMap<K, V>
impl<K, V> Unpin for StorageMap<K, V>
impl<K, V> UnsafeUnpin for StorageMap<K, V>
impl<K, V> UnwindSafe for StorageMap<K, V>
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more