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::Hasherwhere Self::Hasher: 'f,

Creates a hashing implementation

Implementors§