Result::is_err
pub fn is_err() -> bool
Source: compiler/src/prelude/core.hy True when this is Err.
Called on a Result value as value.is_err(…).
Returns#
bool
See also#
ResultResult::is_ok: True when this isOk.Result::ok: TheOkvalue as anOption.Result::err: TheErrvalue 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.Result::map_err: The same value, orErr(f(error)).