Transposes a Result of a Maybe into a Maybe of a Result.
Result
Maybe
Ok(Just(T))
Just(Ok(T))
Err(E)
Just(Err(E))
Ok(Nothing)
Nothing
a Result<Maybe<T>, E> to transform to a Maybe<Result<T, E>>.
Result<Maybe<T>, E>
Maybe<Result<T, E>>
Transposes a
Result
of aMaybe
into aMaybe
of aResult
.Ok(Just(T))
Just(Ok(T))
Err(E)
Just(Err(E))
Ok(Nothing)
Nothing