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]
impl<A: Clone, B: Clone> Clone for EitherOrBoth<A, B>
fn clone(&self) -> 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[src]
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]
impl<A: PartialEq, B: PartialEq> PartialEq for EitherOrBoth<A, B>
fn eq(&self, __arg_0: &EitherOrBoth<A, B>) -> bool
[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
[src]
fn ne(&self, __arg_0: &EitherOrBoth<A, B>) -> bool
This method tests for !=
.
impl<A: Eq, B: Eq> Eq for EitherOrBoth<A, B>
[src]
impl<A: Eq, B: Eq> Eq for EitherOrBoth<A, B>
impl<A: Debug, B: Debug> Debug for EitherOrBoth<A, B>
[src]
impl<A: Debug, B: Debug> Debug for EitherOrBoth<A, B>
Auto Trait Implementations
impl<A, B> Send for EitherOrBoth<A, B> where
A: Send,
B: Send,
impl<A, B> Send for EitherOrBoth<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for EitherOrBoth<A, B> where
A: Sync,
B: Sync,
impl<A, B> Sync for EitherOrBoth<A, B> where
A: Sync,
B: Sync,