Transform a ~Maybe Maybe
into a ~Result Result
.
If the Maybe
is a ~Just Just
, its value will be wrapped in
the ~Ok Ok
variant; if it is a
~Nothing Nothing
the errValue
will be wrapped in the
~Err Err
variant.
A value to wrap in an Err
if maybe
is a Nothing
.
Transform a
~Maybe Maybe
into a~Result Result
.If the
Maybe
is a~Just Just
, its value will be wrapped in the~Ok Ok
variant; if it is a~Nothing Nothing
theerrValue
will be wrapped in the~Err Err
variant.