Trait Walk

Source
pub trait Walk: Sized {
    // Required methods
    fn leaf() -> Self;
    fn internal(children: &[Self], lookup: &KeyLookup) -> Self;
}
Expand description

Capability to be created from a walk through all representative nodes in a TreeKey using traverse_all().

This is a bottom-up, breadth-first walk.

Required Methods§

Source

fn leaf() -> Self

Create a leaf node

Source

fn internal(children: &[Self], lookup: &KeyLookup) -> Self

Create an internal node frmo child nodes.

§Args
  • children: Child nodes to merge.
  • lookup: The namespace the child nodes are in.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§