pub trait StorageMut: Storage {
// Required method
fn storage_mut(&mut self) -> &mut Self::Storage;
}
Expand description
Get a mutable reference to the underlying storage type.
Required Methods§
fn storage_mut(&mut self) -> &mut Self::Storage
Implementations on Foreign Types§
Source§impl<'a, T> StorageMut for [T]
impl<'a, T> StorageMut for [T]
Source§fn storage_mut(&mut self) -> &mut Self::Storage
fn storage_mut(&mut self) -> &mut Self::Storage
A slice is a type of storage, simply return a mutable reference to self.
Source§impl<S: StorageMut + ?Sized> StorageMut for &mut S
impl<S: StorageMut + ?Sized> StorageMut for &mut S
fn storage_mut(&mut self) -> &mut Self::Storage
Source§impl<S: StorageMut<Storage = S>, T: StorageMut<Storage = T>> StorageMut for (S, T)
impl<S: StorageMut<Storage = S>, T: StorageMut<Storage = T>> StorageMut for (S, T)
fn storage_mut(&mut self) -> &mut Self::Storage
Source§impl<T> StorageMut for Vec<T>
impl<T> StorageMut for Vec<T>
Source§fn storage_mut(&mut self) -> &mut Self::Storage
fn storage_mut(&mut self) -> &mut Self::Storage
Vec
is a type of storage, simply return a mutable reference to self.
Source§impl<T> StorageMut for Range<T>
impl<T> StorageMut for Range<T>
Source§fn storage_mut(&mut self) -> &mut Self::Storage
fn storage_mut(&mut self) -> &mut Self::Storage
A range is a type of storage, simply return a mutable reference to self.