Type Alias trie_db::node::NodeKey

source ·
pub type NodeKey = (usize, SmallVec<[u8; 40]>);
Expand description

Partial node key type: offset and owned value of a nibbleslice. Offset is applied on first byte of array (bytes are right aligned).

Trait Implementations§

source§

impl From<&NibbleVec> for NodeKey

source§

fn from(nibble: &NibbleVec) -> NodeKey

Converts to this type from the input type.
source§

impl<'a> From<NibbleSlice<'a>> for NodeKey

source§

fn from(slice: NibbleSlice<'a>) -> NodeKey

Converts to this type from the input type.