pub trait OptionEq<Rhs, InnerRhs = Rhs> {
    fn opt_eq(&self, other: Rhs) -> Option<bool>;

    fn opt_ne(&self, other: Rhs) -> Option<bool> { ... }
}
Expand description

Trait for the equality OptionOperations.

Required Methods§

Tests whether self is equal to other.

Returns None if they can’t be compared, e.g. if at most one argument is None.

Provided Methods§

Tests whether self is not equal to other.

Returns None if they can’t be compared, e.g. if at most one argument is None.

Implementations on Foreign Types§

Implementors§