BreadthFirstZipped

Struct BreadthFirstZipped 

Source
pub struct BreadthFirstZipped<'item, Head: Iterator, Tail: BreadthFirst<'item>> { /* private fields */ }
Expand description

Recursive implementation of a breadth-first exhaustive zip.

Implementations§

Source§

impl<'item, Head: Iterator, Tail: BreadthFirst<'item>> BreadthFirstZipped<'item, Head, Tail>

Source

pub fn new(head: Head, tail: Tail) -> Self

Initialize a new recursive node of a breadth-first zip implementation.

Trait Implementations§

Source§

impl<'item, Head: Iterator, Tail: BreadthFirst<'item>> BreadthFirst<'item> for BreadthFirstZipped<'item, Head, Tail>
where Head::Item: 'item, (&'item Head::Item, Tail::Advance): Flatten,

Source§

const DEPTH: usize

Depth of recursion.
Source§

type Advance = (&'item <Head as Iterator>::Item, <Tail as BreadthFirst<'item>>::Advance)

Output of advance if successful.
Source§

fn next(&'item self, index_sum: usize) -> Option<Self::Advance>

Fallibly choose the next output.
Source§

fn rewind(&self)

Rewind the iterator back to its starting point

Auto Trait Implementations§

§

impl<'item, Head, Tail> Freeze for BreadthFirstZipped<'item, Head, Tail>
where Tail: Freeze, Head: Freeze,

§

impl<'item, Head, Tail> RefUnwindSafe for BreadthFirstZipped<'item, Head, Tail>
where Tail: RefUnwindSafe, Head: RefUnwindSafe, <Head as Iterator>::Item: RefUnwindSafe,

§

impl<'item, Head, Tail> Send for BreadthFirstZipped<'item, Head, Tail>
where Tail: Send, Head: Send, <Head as Iterator>::Item: Send,

§

impl<'item, Head, Tail> Sync for BreadthFirstZipped<'item, Head, Tail>
where Tail: Sync, Head: Sync, <Head as Iterator>::Item: Sync,

§

impl<'item, Head, Tail> Unpin for BreadthFirstZipped<'item, Head, Tail>
where Tail: Unpin, Head: Unpin, <Head as Iterator>::Item: Unpin,

§

impl<'item, Head, Tail> UnwindSafe for BreadthFirstZipped<'item, Head, Tail>
where Tail: UnwindSafe, Head: UnwindSafe, <Head as Iterator>::Item: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.