A Result
containing the value wrapped in maybe
in an Ok
, or
error
in an Err
.
Transform the Maybe
into a Result
, using the wrapped
value as the Ok
value if Just
; otherwise using the supplied error
value
for Err
.
The error value to use if the Maybe
is Nothing
.
A Result
containing the value wrapped in maybe
in an Ok
, or
error
in an Err
.
Transform the
Maybe
into aResult
, using the wrapped value as theOk
value ifJust
; otherwise using the suppliederror
value forErr
.