Struct fuel_merkle::common::StorageMap
source · [−]pub struct StorageMap<Key, Value> { /* private fields */ }
Implementations
sourceimpl<Key, Value> StorageMap<Key, Value>
impl<Key, Value> StorageMap<Key, Value>
Trait Implementations
sourceimpl<Key: Debug, Value: Debug> Debug for StorageMap<Key, Value>
impl<Key: Debug, Value: Debug> Debug for StorageMap<Key, Value>
sourceimpl<Key, Value> Default for StorageMap<Key, Value>
impl<Key, Value> Default for StorageMap<Key, Value>
sourceimpl<Key, Value> Storage<Key, Value> for StorageMap<Key, Value> where
Key: Eq + Hash + Clone,
Value: Clone,
impl<Key, Value> Storage<Key, Value> for StorageMap<Key, Value> where
Key: Eq + Hash + Clone,
Value: Clone,
type Error = Infallible
type Error = Infallible
Error implementation of the storage functions
sourcefn insert(
&mut self,
key: &Key,
value: &Value
) -> Result<Option<Value>, Self::Error>
fn insert(
&mut self,
key: &Key,
value: &Value
) -> Result<Option<Value>, Self::Error>
Append K->V
mapping to the storage. Read more
sourcefn remove(&mut self, key: &Key) -> Result<Option<Value>, Self::Error>
fn remove(&mut self, key: &Key) -> Result<Option<Value>, Self::Error>
Remove K->V
mapping from the storage. Read more
Auto Trait Implementations
impl<Key, Value> RefUnwindSafe for StorageMap<Key, Value> where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for StorageMap<Key, Value> where
Key: Send,
Value: Send,
impl<Key, Value> Sync for StorageMap<Key, Value> where
Key: Sync,
Value: Sync,
impl<Key, Value> Unpin for StorageMap<Key, Value> where
Key: Unpin,
Value: Unpin,
impl<Key, Value> UnwindSafe for StorageMap<Key, Value> where
Key: UnwindSafe,
Value: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more