Trait std::either::ToEither

pub trait ToEither<L, R> {
    fn to_either(&self) -> Either<L, R>;
}

A generic trait for converting a value to a Either

Required Methods

fn to_either(&self) -> Either<L, R>

Convert to the either type

Implementors