Result::is_ok
pub fn is_ok() -> bool
Source: compiler/src/prelude/core.hy True when this is Ok.
Called on a Result value as value.is_ok(…).
Returns#
bool
See also#
ResultResult::is_err: True when this isErr.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)).