Skip to main content

PartialEqIs

Trait PartialEqIs 

Source
pub trait PartialEqIs<Rhs: PointeeSized = Self>: PartialEq<Rhs> + PointeeSized {
    // Required methods
    spec fn is_eq(&self, other: &Rhs) -> bool;
    spec fn is_ne(&self, other: &Rhs) -> bool;
}

Required Methods§

Source

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

Source

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<A: PointeeSized + PartialEq<Rhs>, Rhs: PointeeSized> PartialEqIs<Rhs> for A