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 for NodeHandle<'a>
impl<'a> PartialEq for NodeHandle<'a>
Source§impl<'a, HO> TryFrom<NodeHandle<'a>> for ChildReference<HO>
impl<'a, HO> TryFrom<NodeHandle<'a>> for ChildReference<HO>
impl<'a> Copy for NodeHandle<'a>
impl<'a> Eq for NodeHandle<'a>
impl<'a> StructuralPartialEq for NodeHandle<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeHandle<'a>
impl<'a> RefUnwindSafe for NodeHandle<'a>
impl<'a> Send for NodeHandle<'a>
impl<'a> Sync for NodeHandle<'a>
impl<'a> Unpin for NodeHandle<'a>
impl<'a> UnwindSafe for NodeHandle<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more