Converts from Result<T, E> to Option<T>.
Result<T, E>
Option<T>
Converts this into an Option, consuming this, and discarding the error, if any.
this
Option<T> okOpt() => isOk ? Some(_okValue) : None<T>();