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(A, B)Neither input iterator is exhausted yet, yielding two values.
Left(A)The parameter iterator of .zip_longest() is exhausted,
only yielding a value from the self iterator.
Right(B)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]
fn clone(&self) -> EitherOrBoth<A, B>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<A: PartialEq, B: PartialEq> PartialEq for EitherOrBoth<A, B>[src]
fn eq(&self, __arg_0: &EitherOrBoth<A, B>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &EitherOrBoth<A, B>) -> bool
This method tests for !=.