pub trait Equivalent: Any + Debug {
// Required methods
fn equals(&self, other: &dyn Equivalent) -> bool;
fn as_any(&self) -> &dyn Any;
}Expand description
Trait for types that can be compared for equality and downcasted. Used primarily for tracking removable items in the data stores.
Required Methods§
Sourcefn equals(&self, other: &dyn Equivalent) -> bool
fn equals(&self, other: &dyn Equivalent) -> bool
Checks if this item equals another Equivalent item