err abstract method

Option<E> err()

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

Implementation

Option<E> err();