miniconf

Trait Walk

source
pub trait Walk: Sized {
    type Error;

    // Required methods
    fn leaf() -> Self;
    fn internal(
        children: &[&Self],
        lookup: &KeyLookup,
    ) -> Result<Self, Self::Error>;
}
Expand description

Capability to be walked through a TreeKey using traverse_all().

Required Associated Types§

source

type Error

Error type for merge()

Required Methods§

source

fn leaf() -> Self

Return the walk starting point for a single leaf node

source

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

Merge node metadata into self.

§Args
  • children: The walk of the children to merge.
  • lookup: The namespace the node(s) are in.

Object Safety§

This trait is not object safe.

Implementors§