[][src]Trait mod_utilities::IntoEither

pub trait IntoEither: Sized {
    fn into_a<B>(self) -> Either<Self, B> { ... }
fn into_b<A>(self) -> Either<A, Self> { ... } }

Allows converting a value into some side of an Either

Provided methods

fn into_a<B>(self) -> Either<Self, B>

Convert a value into an Either::A

fn into_b<A>(self) -> Either<A, Self>

Convert a value into an Either::B

Loading content...

Implementors

impl<T> IntoEither for T[src]

Loading content...