FastNode

Trait FastNode 

Source
pub trait FastNode
where Self: Hash + Eq + Clone + Debug,
{ type Error: Debug; // Required method fn add_children<E>( &self, depth: usize, queue: &mut E, ) -> Result<(), Self::Error> where E: ExtendQueue<Self, Self::Error>; }
Available on crate feature sync only.
Expand description

A node which adds children Nodes to a queue in place.

Required Associated Types§

Source

type Error: Debug

The type of the error when adding children fails.

Required Methods§

Source

fn add_children<E>( &self, depth: usize, queue: &mut E, ) -> Result<(), Self::Error>
where E: ExtendQueue<Self, Self::Error>,

Callback for adding children Nodes to a queue implementing ExtendQueue.

§Errors

Should return Self::Error if the children could not be added.

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§