err method
Converts this Result<T, E>
into an Option<E>, discarding the held value
if this is Ok.
Returns:
See also:
Rust: Result::err()
Implementation
Option<E> err() => switch (this) {
Ok() => None(),
Err(value: E value) => Some(value)
};
Converts this Result<T, E>
into an Option<E>, discarding the held value
if this is Ok.
Returns:
See also:
Rust: Result::err()
Option<E> err() => switch (this) {
Ok() => None(),
Err(value: E value) => Some(value)
};