Enum diem_jellyfish_merkle::node_type::Node
source · pub enum Node<V> {
Null,
Internal(InternalNode),
Leaf(LeafNode<V>),
}
Expand description
The concrete node type of JellyfishMerkleTree
.
Variants§
Null
Represents null
.
Internal(InternalNode)
A wrapper of InternalNode
.
Leaf(LeafNode<V>)
A wrapper of LeafNode
.
Implementations§
Trait Implementations§
source§impl<V> From<InternalNode> for Node<V>
impl<V> From<InternalNode> for Node<V>
source§fn from(node: InternalNode) -> Self
fn from(node: InternalNode) -> Self
Converts to this type from the input type.
source§impl<V: PartialEq> PartialEq<Node<V>> for Node<V>
impl<V: PartialEq> PartialEq<Node<V>> for Node<V>
impl<V: Eq> Eq for Node<V>
impl<V> StructuralEq for Node<V>
impl<V> StructuralPartialEq for Node<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for Node<V>where V: RefUnwindSafe,
impl<V> Send for Node<V>where V: Send,
impl<V> Sync for Node<V>where V: Sync,
impl<V> Unpin for Node<V>where V: Unpin,
impl<V> UnwindSafe for Node<V>where V: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.