Enum itertools::EitherOrBoth [] [src]

pub enum EitherOrBoth<A, B> {
    Both(A, B),
    Left(A),
    Right(B),
}

A value yielded by ZipLongest. Contains one or two values, depending on which of the input iterators are exhausted.

See .zip_longest() for more information.

Variants

Both

Neither input iterator is exhausted yet, yielding two values.

Left

The parameter iterator of .zip_longest() is exhausted, only yielding a value from the self iterator.

Right

The self iterator of .zip_longest() is exhausted, only yielding a value from the parameter iterator.

Trait Implementations

Derived Implementations

impl<A: Debug, B: Debug> Debug for EitherOrBoth<A, B>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<A: Eq, B: Eq> Eq for EitherOrBoth<A, B>

impl<A: PartialEq, B: PartialEq> PartialEq for EitherOrBoth<A, B>

fn eq(&self, __arg_0: &EitherOrBoth<A, B>) -> bool

fn ne(&self, __arg_0: &EitherOrBoth<A, B>) -> bool

impl<A: Clone, B: Clone> Clone for EitherOrBoth<A, B>

fn clone(&self) -> EitherOrBoth<A, B>

1.0.0fn clone_from(&mut self, source: &Self)