Expand description
A trait to annotate whether a type is success
or failure
.
Required Methods§
Implementations on Foreign Types§
source§impl<T, E> Failure for Result<T, E>
impl<T, E> Failure for Result<T, E>
source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Result::Ok
is success, Result::Err
is failure.
source§impl<T> Failure for Option<T>
impl<T> Failure for Option<T>
source§fn is_error(&self) -> bool
fn is_error(&self) -> bool
Option::Some
is success, Option::None
is failure.