hash_that_set

Trait BuildHasherFromFriend

Source
pub trait BuildHasherFromFriend<F> {
    type Hasher: Hasher;

    // Required method
    fn build_hasher_from<'f>(friend: &'f F) -> Self::Hasher
       where Self::Hasher: 'f;
}
Expand description

Like the standard library’s BuildHasher, but takes the hashing implementation from a peer

Required Associated Types§

Source

type Hasher: Hasher

The type of the hasher that will be created

Required Methods§

Source

fn build_hasher_from<'f>(friend: &'f F) -> Self::Hasher
where Self::Hasher: 'f,

Creates a hashing implementation

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§