Skip to main content

DynHash

Trait DynHash 

Source
pub trait DynHash: DynHashSealed { }
Expand description

A bound for the LateStruct::EraseTo associated type which asserts that fields must have an implementation of Hash. If LateStruct::EraseTo implements this trait, the LateInstance instantiating that structure will implement Hash.

This trait is implemented for all types which implement Hash. Unlike Hash, however, it is dyn compatible.

This trait is sealed and no downstream crates can implement it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Hash> DynHash for T