Converts a Result into an Option wrapping the error value.
Result
Option
Result to convert.
None if the result is Ok, or Some wrapping the result error if it's Err.
None
Ok
Some
Err
Converts a
Resultinto anOptionwrapping the error value.