Equivalent

Trait Equivalent 

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

Source

fn equals(&self, other: &dyn Equivalent) -> bool

Checks if this item equals another Equivalent item

Source

fn as_any(&self) -> &dyn Any

Allows downcasting to concrete type

Implementations on Foreign Types§

Source§

impl Equivalent for Value

Source§

fn equals(&self, other: &dyn Equivalent) -> bool

Source§

fn as_any(&self) -> &dyn Any

Source§

impl Equivalent for PathBuf

Source§

fn equals(&self, other: &dyn Equivalent) -> bool

Source§

fn as_any(&self) -> &dyn Any

Implementors§