pub trait Walk: Sized {
type Error;
// Required methods
fn internal() -> Self;
fn leaf() -> Self;
fn merge(
self,
walk: &Self,
index: Option<usize>,
lookup: &KeyLookup,
) -> Result<Self, Self::Error>;
}
Expand description
Capability to be walked through a TreeKey
using traverse_all()
.
Required Associated Types§
Required Methods§
sourcefn merge(
self,
walk: &Self,
index: Option<usize>,
lookup: &KeyLookup,
) -> Result<Self, Self::Error>
fn merge( self, walk: &Self, index: Option<usize>, lookup: &KeyLookup, ) -> Result<Self, Self::Error>
Merge node metadata into self.
§Args
walk
: The walk of the node to merge.index
: Either the node index in case of a single node orNone
, in case oflookup.len
nodes of homogeneous type.lookup
: The namespace the node(s) are in.
Object Safety§
This trait is not object safe.