Skip to main content

Hash

Trait Hash 

Source
pub unsafe trait Hash: Hash { }
Expand description

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

§Example

#[implement(newer_type_std::hash::Hash)]
struct MyStruct {
    slot: u8
}

§Safety

should be implemented by newer_type::implement

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§