Enum stdcli::prelude::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, B> Clone for EitherOrBoth<A, B> where
A: Clone,
B: Clone,
[src]
A: Clone,
B: Clone,
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, B> Eq for EitherOrBoth<A, B> where
A: Eq,
B: Eq,
[src]
A: Eq,
B: Eq,
impl<A, B> PartialEq<EitherOrBoth<A, B>> for EitherOrBoth<A, B> where
A: PartialEq<A>,
B: PartialEq<B>,
[src]
A: PartialEq<A>,
B: PartialEq<B>,
fn eq(&self, __arg_0: &EitherOrBoth<A, B>) -> bool
[src]
fn ne(&self, __arg_0: &EitherOrBoth<A, B>) -> bool
[src]
impl<A, B> Debug for EitherOrBoth<A, B> where
A: Debug,
B: Debug,
[src]
A: Debug,
B: Debug,