pub trait IsSame<Rhs = Self>where
Rhs: ?Sized,{
// Required method
fn is_same(&self, other: &Rhs) -> bool;
// Provided method
fn is_not_same(&self, other: &Rhs) -> bool { ... }
}Expand description
Compares two versions of a piece of data to see if it has changed.
Required Methods§
Provided Methods§
Sourcefn is_not_same(&self, other: &Rhs) -> bool
fn is_not_same(&self, other: &Rhs) -> bool
Equivalent to !self.is_same(other).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".