ExtendQueue

Trait ExtendQueue 

Source
pub trait ExtendQueue<I, E> {
    // Required methods
    fn add(&mut self, item: Result<I, E>);
    fn add_all<Iter>(&mut self, iter: Iter)
       where Iter: IntoIterator<Item = Result<I, E>>;
}
Available on crate feature sync only.
Expand description

Extend a queue with the contents of an Iterator.

Queues to be used by FastNode must implement this trait.

Required Methods§

Source

fn add(&mut self, item: Result<I, E>)

Add single item with given depth to the queue.

Source

fn add_all<Iter>(&mut self, iter: Iter)
where Iter: IntoIterator<Item = Result<I, E>>,

Extend the queue with the contents of an Iterator.

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§