pub struct StorageRef<'a, T: 'a + ?Sized, Type: Mappable>(/* private fields */);
Expand description
The wrapper around the storage that supports only methods from StorageInspect
.
Implementations§
source§impl<'a, T: StorageInspect<Type>, Type: Mappable> StorageRef<'a, T, Type>
impl<'a, T: StorageInspect<Type>, Type: Mappable> StorageRef<'a, T, Type>
source§impl<'a, T, Type: Mappable> StorageRef<'a, T, Type>
impl<'a, T, Type: Mappable> StorageRef<'a, T, Type>
pub fn root<Key>(self, key: &Key) -> Result<MerkleRoot, T::Error>where
T: MerkleRootStorage<Key, Type>,
Auto Trait Implementations§
impl<'a, T, Type> Freeze for StorageRef<'a, T, Type>where
T: ?Sized,
impl<'a, T, Type> RefUnwindSafe for StorageRef<'a, T, Type>
impl<'a, T, Type> Send for StorageRef<'a, T, Type>
impl<'a, T, Type> Sync for StorageRef<'a, T, Type>
impl<'a, T, Type> Unpin for StorageRef<'a, T, Type>
impl<'a, T, Type> UnwindSafe for StorageRef<'a, T, 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