Enum arg_combinators::util::Either [−][src]
pub enum Either<L, R> { Left(L), Right(R), }
Variants
Left(L)
Right(R)
Methods
impl<T> Either<T, T>
[src]
impl<T> Either<T, T>
Trait Implementations
impl<L: Debug, R: Debug> Debug for Either<L, R>
[src]
impl<L: Debug, R: Debug> Debug for Either<L, R>
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<L: PartialEq, R: PartialEq> PartialEq for Either<L, R>
[src]
impl<L: PartialEq, R: PartialEq> PartialEq for Either<L, R>
fn eq(&self, other: &Either<L, R>) -> bool
[src]
fn eq(&self, other: &Either<L, R>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Either<L, R>) -> bool
[src]
fn ne(&self, other: &Either<L, R>) -> bool
This method tests for !=
.
impl<L: Eq, R: Eq> Eq for Either<L, R>
[src]
impl<L: Eq, R: Eq> Eq for Either<L, R>
impl<L, R> Display for Either<L, R> where
L: Display,
R: Display,
[src]
impl<L, R> Display for Either<L, R> where
L: Display,
R: Display,