Result.ok converts Result<T, never> into Option<T>, None if the result is Err.
Result.ok
Result<T, never>
Option<T>
None
Err
Result<T, E>.ok = () => Option<T>;
div(2, 2) // => Ok(1) .ok() // => Some(1)