Open

Description
I noticed that a few potentially useful methods convertingOption
to Result
aren't currently implemented: ok_or_default
, err_or
, err_or_else
, and err_or_default
.
ok_or_default
could be useful as a complement to unwrap_or_default
when converting Option
s to Result
s with a certain error type.
All of the err_or
functions are complements to ok_or
and aren't implemented at all.