Enum trie_db::node::NodeHandlePlan
source · 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 more