bevy_ecs::label

Trait DynHash

Source
pub trait DynHash: DynEq {
    // Required methods
    fn as_dyn_eq(&self) -> &dyn DynEq;
    fn dyn_hash(&self, state: &mut dyn Hasher);
}
Expand description

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

Required Methods§

Source

fn as_dyn_eq(&self) -> &dyn DynEq

Casts the type to dyn Any.

Source

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.

Implementors§

Source§

impl<T> DynHash for T
where T: DynEq + Hash,