Trait Either

Source
pub trait Either<T> {
    // Required method
    fn either(self) -> T;
}
Expand description

This trait is mainly used for Result<T,T> to return the Ok or Err value.

Required Methods§

Source

fn either(self) -> T

Return the Ok or Err value.

Implementations on Foreign Types§

Source§

impl<T> Either<T> for Result<T, T>

Source§

fn either(self) -> T

Implementors§