Trait option_operations::eq::OptionEq[][src]

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