Turn Option<Result<O, E>> into <Result<Option<O>, E>> and the other way around.
Option<Result<O, E>>
<Result<Option<O>, E>>
Feel free to submit PR especially for other types where this operation makes sense.