pub trait StrictEq<Rhs = Self>where
Rhs: ?Sized,{
// 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 for Vec<T>where
T: StrictEq,
Blanket implementation for two vectors of similarly-typed StrictEq elements
impl<T> StrictEq for Vec<T>where
T: StrictEq,
Blanket implementation for two vectors of similarly-typed StrictEq elements