Node

Trait Node 

Source
pub trait Node
where Self: Hash + Eq + Clone + Debug,
{ type Error: Debug; // Required method fn children(&self, depth: usize) -> NodeIter<Self, Self::Error>; }
Available on crate feature sync only.
Expand description

A node with produces an Iterator of children Nodes for a given depth.

Required Associated Types§

Source

type Error: Debug

The type of the error when producing children fails.

Required Methods§

Source

fn children(&self, depth: usize) -> NodeIter<Self, Self::Error>

Returns an Iterator over its children Nodes.

§Errors

Should return Self::Error if the iterator cannot be crated.

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§