Get the wrapped error from a Result
, wrapped in an Option
object
unwrap_fail_option.Rd
This is useful for converting a Result
to an Option
i.e. to go from
the possibility of an answer or details of a failure, to the possibility of
an answer or nothing.
Value
Some(x)
in the case of a Failure
where x
is the unwrapped value of the Failure
, or Nothing()
in the case of a Success
.