pub struct StorageMap<Type>where
Type: Mappable,{ /* private fields */ }
Implementations§
Trait Implementations§
source§impl<Type> Clone for StorageMap<Type>
impl<Type> Clone for StorageMap<Type>
source§fn clone(&self) -> StorageMap<Type>
fn clone(&self) -> StorageMap<Type>
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<Type> Debug for StorageMap<Type>
impl<Type> Debug for StorageMap<Type>
source§impl<Type> Default for StorageMap<Type>where
Type: Mappable,
impl<Type> Default for StorageMap<Type>where
Type: Mappable,
source§impl<Type> StorageInspect<Type> for StorageMap<Type>
impl<Type> StorageInspect<Type> for StorageMap<Type>
source§impl<Type> StorageMutate<Type> for StorageMap<Type>
impl<Type> StorageMutate<Type> for StorageMap<Type>
source§fn replace(
&mut self,
key: &Type::Key,
value: &Type::Value,
) -> Result<Option<Type::OwnedValue>, Self::Error>
fn replace( &mut self, key: &Type::Key, value: &Type::Value, ) -> Result<Option<Type::OwnedValue>, Self::Error>
Append
Key->Value
mapping to the storage. Read moresource§fn take(
&mut self,
key: &Type::Key,
) -> Result<Option<Type::OwnedValue>, Self::Error>
fn take( &mut self, key: &Type::Key, ) -> Result<Option<Type::OwnedValue>, Self::Error>
Remove
Key->Value
mapping from the storage. Read moreAuto Trait Implementations§
impl<Type> Freeze for StorageMap<Type>
impl<Type> RefUnwindSafe for StorageMap<Type>
impl<Type> Send for StorageMap<Type>
impl<Type> Sync for StorageMap<Type>
impl<Type> Unpin for StorageMap<Type>
impl<Type> UnwindSafe for StorageMap<Type>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)