Skip to main content

DynHash

Trait DynHash 

Source
pub trait DynHash: DynEq {
    // Required method
    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 dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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