Skip to main content

Hasher

Trait Hasher 

Source
pub unsafe trait Hasher: Hasher { }
Expand description

This trait is empty declaration of ::core::hash::Hasher to be used with newer_type::implement.

§Example

#[implement(newer_type_std::hash::Hasher)]
struct MyStruct {
    slot: std::collections::hash_map::DefaultHasher
}

§Safety

should be implemented by newer_type::implement

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§