[][src]Enum trie_db::node::Node

pub enum Node<'a> {
    Empty,
    Leaf(NibbleSlice<'a>, &'a [u8]),
    Extension(NibbleSlice<'a>, &'a [u8]),
    Branch([Option<&'a [u8]>; 16]Option<&'a [u8]>),
}

Type of node in the trie and essential information thereof.

Variants

Empty

Null trie node; could be an empty root or an empty branch entry.

Leaf(NibbleSlice<'a>, &'a [u8])

Leaf node; has key slice and value. Value may not be empty.

Extension(NibbleSlice<'a>, &'a [u8])

Extension node; has key slice and node data. Data may not be null.

Branch([Option<&'a [u8]>; 16]Option<&'a [u8]>)

Branch node; has array of 16 child nodes (each possibly null) and an optional immediate node data.

Trait Implementations

impl<'a> From<Node<'a>> for OwnedNode[src]

impl<'a> Eq for Node<'a>[src]

impl<'a> PartialEq<Node<'a>> for Node<'a>[src]

impl<'a> Clone for Node<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for Node<'a>[src]

Auto Trait Implementations

impl<'a> Send for Node<'a>

impl<'a> Sync for Node<'a>

Blanket Implementations

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> MaybeDebug for T where
    T: Debug
[src]