Enum stdcli::prelude::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, B> Clone for EitherOrBoth<A, B> where
    A: Clone,
    B: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

[src]

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

[src]

Formats the value using the given formatter.