pub struct StorageMap {
pub slot: u8,
}Fields§
§slot: u8Trait Implementations§
Source§impl<K, V> StorageMapAccess<K, V> for StorageMap
impl<K, V> StorageMapAccess<K, V> for StorageMap
Source§fn set(&self, key: K, value: V) -> (StorageCommitmentRoot, V)
fn set(&self, key: K, value: V) -> (StorageCommitmentRoot, V)
Sets a map item value in the account storage and returns (old_root, old_value)
Where:
- old_root is the old map root.
- old_value is the previous value of the item.
Auto Trait Implementations§
impl Freeze for StorageMap
impl RefUnwindSafe for StorageMap
impl Send for StorageMap
impl Sync for StorageMap
impl Unpin for StorageMap
impl UnwindSafe for StorageMap
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