Trait bevy_utils::label::DynEq

source ·
pub trait DynEq: Any {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn dyn_eq(&self, other: &dyn DynEq) -> bool;
}
Expand description

An object safe version of Eq. This trait is automatically implemented for any 'static type that implements Eq.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Casts the type to dyn Any.

source

fn dyn_eq(&self, other: &dyn DynEq) -> bool

This method tests for self and other values to be equal.

Implementers should avoid returning true when the underlying types are not the same.

Implementors§

source§

impl<T> DynEq for Twhere T: Any + Eq,