Trait ExPartialEq

Source
pub trait ExPartialEq<Rhs: ?Sized = Self> {
    type ExternalTraitSpecificationFor: PartialEq<Rhs>;

    // Required methods
    spec fn obeys_eq_spec() -> bool;
    spec fn eq_spec(&self, other: &Rhs) -> bool;
    exec fn eq(&self, other: &Rhs) -> r : bool;
    exec fn ne(&self, other: &Rhs) -> r : bool;
}

Required Associated Types§

Required Methods§

Source

spec fn obeys_eq_spec() -> bool

Source

spec fn eq_spec(&self, other: &Rhs) -> bool

Source

exec fn eq(&self, other: &Rhs) -> r : bool

ensures
Self::obeys_eq_spec() ==> r == self.eq_spec(other),
Source

exec fn ne(&self, other: &Rhs) -> r : bool

ensures
Self::obeys_eq_spec() ==> r == !self.eq_spec(other),

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§