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§
Required Methods§
Sourcefn build_hasher_from<'f>(friend: &'f F) -> Self::Hasherwhere
Self::Hasher: 'f,
fn build_hasher_from<'f>(friend: &'f F) -> Self::Hasherwhere
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.