Enum trie_db::node::NodeHandle
source · pub enum NodeHandle<'a> {
Hash(&'a [u8]),
Inline(&'a [u8]),
}
Expand description
A reference to a trie node which may be stored within another trie node.
Variants§
Implementations§
source§impl NodeHandle<'_>
impl NodeHandle<'_>
sourcepub fn to_owned_handle<L: TrieLayout>(
&self
) -> Result<NodeHandleOwned<TrieHash<L>>, TrieHash<L>, CError<L>>
pub fn to_owned_handle<L: TrieLayout>( &self ) -> Result<NodeHandleOwned<TrieHash<L>>, TrieHash<L>, CError<L>>
Converts this node handle into a NodeHandleOwned
.
Trait Implementations§
source§impl<'a> Clone for NodeHandle<'a>
impl<'a> Clone for NodeHandle<'a>
source§fn clone(&self) -> NodeHandle<'a>
fn clone(&self) -> NodeHandle<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for NodeHandle<'a>
impl<'a> Debug for NodeHandle<'a>
source§impl<'a> PartialEq<NodeHandle<'a>> for NodeHandle<'a>
impl<'a> PartialEq<NodeHandle<'a>> for NodeHandle<'a>
source§fn eq(&self, other: &NodeHandle<'a>) -> bool
fn eq(&self, other: &NodeHandle<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.