pub trait Either<T> { // Required method fn either(self) -> T; }
This trait is mainly used for Result<T,T> to return the Ok or Err value.
Return the Ok or Err value.