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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

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

[src]

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]

[src]

Formats the value using the given formatter. Read more