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§
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