Enum patricia_trie::node::OwnedNode [−][src]
pub enum OwnedNode { Empty, Leaf(NibbleVec, DBValue), Extension(NibbleVec, DBValue), Branch([NodeKey; 16], Option<DBValue>), }
An owning node type. Useful for trie iterators.
Variants
Empty
Empty trie node.
Leaf(NibbleVec, DBValue)
Leaf node: partial key and value.
Extension(NibbleVec, DBValue)
Extension node: partial key and child node.
Branch([NodeKey; 16], Option<DBValue>)
Branch node: 16 children and an optional value.
Trait Implementations
impl Debug for OwnedNode
[src]
impl Debug for OwnedNode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for OwnedNode
[src]
impl PartialEq for OwnedNode
fn eq(&self, other: &OwnedNode) -> bool
[src]
fn eq(&self, other: &OwnedNode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OwnedNode) -> bool
[src]
fn ne(&self, other: &OwnedNode) -> bool
This method tests for !=
.
impl Eq for OwnedNode
[src]
impl Eq for OwnedNode
impl<'a> From<Node<'a>> for OwnedNode
[src]
impl<'a> From<Node<'a>> for OwnedNode