ok abstract method

Option<T> ok()

Converts the Result into an Option containing the value, if any. Otherwise returns None if the result is an error.

Implementation

Option<T> ok();