Enum itertools::EitherOrBoth
[−]
[src]
pub enum EitherOrBoth<A, B> { Both(A, B), Left(A), Right(B), }
Value that either holds a single A or B, or both.
Variants
Both(A, B)
Both values are present.
Left(A)
Only the left value of type A
is present.
Right(B)
Only the right value of type B
is present.
Trait Implementations
impl<A: Clone, B: Clone> Clone for EitherOrBoth<A, B>
[src]
fn clone(&self) -> EitherOrBoth<A, B>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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
[src]
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
[src]
This method tests for !=
.