pub trait EitherOkExt<E, A, B> {
// Required methods
fn map_left<F, U>(self, f: F) -> Result<Either<U, B>, E>
where F: FnOnce(A) -> U;
fn map_right<F, U>(self, f: F) -> Result<Either<A, U>, E>
where F: FnOnce(B) -> U;
}Available on crate feature
either only.Expand description
An extension trait for Result<Either<A, B>, _> that provides additional methods.
Required Methods§
Object Safety§
This trait is not object safe.