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.

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§