Trait std::either::IntoEither

pub trait IntoEither<L, R> {
    fn into_either(self) -> Either<L, R>;
}

A generic trait for converting a value to a Either

Required Methods

fn into_either(self) -> Either<L, R>

Convert to the either type

Implementors