Enum arg_combinators::Either [−][src]
pub enum Either<A, B> { Left(A), Right(B), }
Variants
Left(A)
Right(B)
Trait Implementations
impl<A: Debug, B: Debug> Debug for Either<A, B>
[src]
impl<A: Debug, B: Debug> Debug for Either<A, B>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<A: Clone, B: Clone> Clone for Either<A, B>
[src]
impl<A: Clone, B: Clone> Clone for Either<A, B>
fn clone(&self) -> Either<A, B>
[src]
fn clone(&self) -> Either<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: Copy, B: Copy> Copy for Either<A, B>
[src]
impl<A: Copy, B: Copy> Copy for Either<A, B>
impl<A: PartialEq, B: PartialEq> PartialEq for Either<A, B>
[src]
impl<A: PartialEq, B: PartialEq> PartialEq for Either<A, B>
fn eq(&self, other: &Either<A, B>) -> bool
[src]
fn eq(&self, other: &Either<A, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Either<A, B>) -> bool
[src]
fn ne(&self, other: &Either<A, B>) -> bool
This method tests for !=
.
impl<A: Eq, B: Eq> Eq for Either<A, B>
[src]
impl<A: Eq, B: Eq> Eq for Either<A, B>
impl<A: Display, B: Display> Display for Either<A, B>
[src]
impl<A: Display, B: Display> Display for Either<A, B>