pub enum OwnedNode {
Empty,
Leaf(NibbleVec, DBValue),
Extension(NibbleVec, DBValue),
Branch(Branch),
}Expand description
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(Branch)
Branch node: 16 children and an optional value.
Trait Implementations§
impl Eq for OwnedNode
impl StructuralPartialEq for OwnedNode
Auto Trait Implementations§
impl Freeze for OwnedNode
impl RefUnwindSafe for OwnedNode
impl Send for OwnedNode
impl Sync for OwnedNode
impl Unpin for OwnedNode
impl UnwindSafe for OwnedNode
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