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 values are present.

Only the left value of type A is present.

Only the right value of type B is present.

Trait Implementations

impl<A: Clone, B: Clone> Clone for EitherOrBoth<A, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: PartialEq, B: PartialEq> PartialEq for EitherOrBoth<A, B>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<A: Eq, B: Eq> Eq for EitherOrBoth<A, B>
[src]

impl<A: Debug, B: Debug> Debug for EitherOrBoth<A, B>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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