Enum trie_db::node::NodeHandlePlan
source · pub enum NodeHandlePlan {
Hash(Range<usize>),
Inline(Range<usize>),
}
Expand description
A NodeHandlePlan
is a decoding plan for constructing a NodeHandle
from an encoded trie
node. This is used as a substructure of NodePlan
. See NodePlan
for details.
Variants§
Implementations§
source§impl NodeHandlePlan
impl NodeHandlePlan
sourcepub fn build<'a, 'b>(&'a self, data: &'b [u8]) -> NodeHandle<'b>
pub fn build<'a, 'b>(&'a self, data: &'b [u8]) -> NodeHandle<'b>
Build a node handle by decoding a byte slice according to the node handle plan. It is the responsibility of the caller to ensure that the node plan was created for the argument data, otherwise the call may decode incorrectly or panic.
Trait Implementations§
source§impl Clone for NodeHandlePlan
impl Clone for NodeHandlePlan
source§fn clone(&self) -> NodeHandlePlan
fn clone(&self) -> NodeHandlePlan
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 Debug for NodeHandlePlan
impl Debug for NodeHandlePlan
source§impl PartialEq<NodeHandlePlan> for NodeHandlePlan
impl PartialEq<NodeHandlePlan> for NodeHandlePlan
source§fn eq(&self, other: &NodeHandlePlan) -> bool
fn eq(&self, other: &NodeHandlePlan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NodeHandlePlan
impl StructuralEq for NodeHandlePlan
impl StructuralPartialEq for NodeHandlePlan
Auto Trait Implementations§
impl RefUnwindSafe for NodeHandlePlan
impl Send for NodeHandlePlan
impl Sync for NodeHandlePlan
impl Unpin for NodeHandlePlan
impl UnwindSafe for NodeHandlePlan
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