Trait scoped::Failure

source ·
pub trait Failure {
    fn is_error(&self) -> bool;
}
Expand description

A trait to annotate whether a type is success or failure.

Required Methods§

Returns true if the type is in a failure state, false otherwise.

Implementations on Foreign Types§

Result::Ok is success, Result::Err is failure.

Option::Some is success, Option::None is failure.

Implementors§