Skip to main content

DynHash

Trait DynHash 

Source
pub trait DynHash: Sealed {
    // Required method
    fn dyn_hash(&self, state: &mut dyn Hasher);
}
Expand description

This trait is implemented for any type that implements std::hash::Hash.

Required Methods§

Source

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

Trait Implementations§

Source§

impl<'hash> Hash for dyn DynHash + 'hash

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl<'hash> Hash for dyn DynHash + Send + 'hash

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl<'hash> Hash for dyn DynHash + Send + Sync + 'hash

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl<'hash> Hash for dyn DynHash + Sync + 'hash

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Hash + ?Sized> DynHash for T