SplittableIterator

Trait SplittableIterator 

Source
pub trait SplittableIterator: Iterator + Sized {
    // Required method
    fn split(&mut self) -> Option<Self>;
}
Available on crate features sync and rayon only.
Expand description

An iterator that can be split.

Required Methods§

Source

fn split(&mut self) -> Option<Self>

Split this iterator in two, if possible.

Returns a newly allocated SplittableIterator of the second half, or None, if the iterator is too small to split.

After the call, self will be left containing the first half.

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§

Source§

impl<N> SplittableIterator for Bfs<N>
where N: Node,

Source§

impl<N> SplittableIterator for FastBfs<N>
where N: FastNode,

Source§

impl<N> SplittableIterator for Dfs<N>
where N: Node,

Source§

impl<N> SplittableIterator for FastDfs<N>
where N: FastNode,