pub struct LeafKey { /* private fields */ }Expand description
The derived storage key a leaf storage cell holds, plus its access
mode. Construction derives the key immediately and releases the
keypath’s VM hash stream, so leaves hold no stream — only containers
that keep deriving child slots (maps, vectors) retain a Keypath.
Implementations§
Source§impl LeafKey
impl LeafKey
pub fn get(&self) -> &StorageKey
pub fn is_exclusive(&self) -> bool
Methods from Deref<Target = StorageKey>§
pub fn into_inner(self) -> [u8; 32]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeafKey
impl RefUnwindSafe for LeafKey
impl Send for LeafKey
impl Sync for LeafKey
impl Unpin for LeafKey
impl UnsafeUnpin for LeafKey
impl UnwindSafe for LeafKey
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