Struct merkle_search_tree::Node 
source · 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§
source§impl<const N: usize, K: PartialEq> PartialEq<Node<N, K>> for Node<N, K>
 
impl<const N: usize, K: PartialEq> PartialEq<Node<N, K>> for Node<N, K>
impl<const N: usize, K: Eq> Eq for Node<N, K>
impl<const N: usize, K> StructuralEq for Node<N, K>
impl<const N: usize, K> StructuralPartialEq for Node<N, K>
Auto Trait Implementations§
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