Module radn::func::instances::result

source ·
Expand description

Implementation of MonadFail<E> for Result<A, E>.

If any of the input values are Err, you can expect the output to be Err as well. That includes ResultInstance::replace and ResultInstance::discard_first/ResultInstance::discard_second, even if the value of the option would be ignored.

For Option<A> alternative see option.

For values that are never Err, see solo.

Structs