Result::err
pub fn err() -> Option<E>
Source: compiler/src/prelude/core.hy Called on a Result value as value.err(…).
Returns#
Option<E>
See also#
ResultOptionResult::is_ok: True when this isOk.Result::is_err: True when this isErr.Result::ok: TheOkvalue as anOption.Result::unwrap_or: TheOkvalue, orfallbackonErr.Result::unwrap_or_else: TheOkvalue, orfapplied to the error.Result::map:Ok(f(value)), or the same error.