pub struct Node<const N: usize, K> { /* private fields */ }
Expand description
Storage of a single key/value pair.
Keys are stored immutably in the Node
, alongside the hash of a value
(and not the value itself).
Implementations§
Source§impl<const N: usize, K> Node<N, K>
impl<const N: usize, K> Node<N, K>
Sourcepub fn value_hash(&self) -> &ValueDigest<N>
pub fn value_hash(&self) -> &ValueDigest<N>
Return the hash of the value for this node.
Trait Implementations§
impl<const N: usize, K: Eq> Eq for Node<N, K>
impl<const N: usize, K> StructuralPartialEq for Node<N, K>
Auto Trait Implementations§
impl<const N: usize, K> Freeze for Node<N, K>where
K: Freeze,
impl<const N: usize, K> RefUnwindSafe for Node<N, K>where
K: RefUnwindSafe,
impl<const N: usize, K> Send for Node<N, K>where
K: Send,
impl<const N: usize, K> Sync for Node<N, K>where
K: Sync,
impl<const N: usize, K> Unpin for Node<N, K>where
K: Unpin,
impl<const N: usize, K> UnwindSafe for Node<N, K>where
K: UnwindSafe,
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