pub trait StrictEq<Rhs: ?Sized = Self> {
// Required method
fn strict_eq(&self, other: &Rhs) -> bool;
// Provided method
fn strict_ne(&self, other: &Rhs) -> bool { ... }
}Expand description
Represents an equality check that is considered strict. In the case of
a Located<T>, will check both the inner type AND the region.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<T: StrictEq> StrictEq for Vec<T>
Blanket implementation for two vectors of similarly-typed StrictEq elements
impl<T: StrictEq> StrictEq for Vec<T>
Blanket implementation for two vectors of similarly-typed StrictEq elements