err method

  1. @override
Option<E> err()
override

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

Implementation

@override
Option<E> err() => Some<E>(_err);