is_err
In std/result.
std/result
fn is_err(self) : Bool
Whether self is a failure: err("x") | is_err is true.
self
err("x") | is_err
true