Enum itertools::EitherOrBoth [] [src]

pub enum EitherOrBoth<A, B> {
    Both(A, B),

Value that either holds a single A or B, or both.


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>


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>


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>

impl<A: Debug, B: Debug> Debug for EitherOrBoth<A, B>


Formats the value using the given formatter.