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

Neither input iterator is exhausted yet, yielding two values.

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

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

Trait Implementations

impl<A: Clone, B: Clone> Clone for EitherOrBoth<A, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: PartialEq, B: PartialEq> PartialEq for EitherOrBoth<A, B>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<A: Eq, B: Eq> Eq for EitherOrBoth<A, B>
[src]

impl<A: Debug, B: Debug> Debug for EitherOrBoth<A, B>
[src]

Formats the value using the given formatter.