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 StructuralEq for OwnedNode
impl StructuralPartialEq for OwnedNode
Auto Trait Implementations
impl RefUnwindSafe for OwnedNode
impl Send for OwnedNode
impl Sync for OwnedNode
impl Unpin for OwnedNode
impl UnwindSafe for OwnedNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more