Trait anyhash::BuildHasher
source · pub trait BuildHasher<T> {
type Hasher: Hasher<T>;
// Required method
fn build_hasher(&self) -> Self::Hasher;
// Provided method
fn hash_one<U: Hash>(&self, x: U) -> T { ... }
}
Expand description
A trait for creating instances of Hasher
that make hashes of type T
.
Required Associated Types§
Required Methods§
sourcefn build_hasher(&self) -> Self::Hasher
fn build_hasher(&self) -> Self::Hasher
Creates a new hasher.
Provided Methods§
Object Safety§
This trait is not object safe.
Implementors§
source§impl BuildHasher<u64> for Xxh64BuildHasher
Available on crate feature xxh64
only.
impl BuildHasher<u64> for Xxh64BuildHasher
Available on crate feature
xxh64
only.source§impl<T, BH: BuildHasher<T>> BuildHasher<T> for HasherBeBuildHasher<BH>
impl<T, BH: BuildHasher<T>> BuildHasher<T> for HasherBeBuildHasher<BH>
type Hasher = HasherBe<T, <BH as BuildHasher<T>>::Hasher>
source§impl<T, BH: BuildHasher<T>> BuildHasher<T> for HasherLeBuildHasher<BH>
impl<T, BH: BuildHasher<T>> BuildHasher<T> for HasherLeBuildHasher<BH>
type Hasher = HasherLe<T, <BH as BuildHasher<T>>::Hasher>
source§impl<T, H: Hasher<T> + Default> BuildHasher<T> for BuildHasherDefault<H>
impl<T, H: Hasher<T> + Default> BuildHasher<T> for BuildHasherDefault<H>
source§impl<T: Type, V: Version> BuildHasher<T> for FnvBuildHasher<T, V>
Available on crate feature fnv
only.
impl<T: Type, V: Version> BuildHasher<T> for FnvBuildHasher<T, V>
Available on crate feature
fnv
only.source§impl<T: Type, V: Version> BuildHasher<T> for FnvBuildHasherDefault<V>
Available on crate feature fnv
only.
impl<T: Type, V: Version> BuildHasher<T> for FnvBuildHasherDefault<V>
Available on crate feature
fnv
only.source§impl<V: Version> BuildHasher<u32> for SpookyVBuildHasher<V>
Available on crate feature spooky
only.
impl<V: Version> BuildHasher<u32> for SpookyVBuildHasher<V>
Available on crate feature
spooky
only.source§impl<V: Version> BuildHasher<u32> for SpookyVBuildHasherDefault<V>
Available on crate feature spooky
only.
impl<V: Version> BuildHasher<u32> for SpookyVBuildHasherDefault<V>
Available on crate feature
spooky
only.source§impl<V: Version> BuildHasher<u64> for SpookyVBuildHasher<V>
Available on crate feature spooky
only.
impl<V: Version> BuildHasher<u64> for SpookyVBuildHasher<V>
Available on crate feature
spooky
only.source§impl<V: Version> BuildHasher<u64> for SpookyVBuildHasherDefault<V>
Available on crate feature spooky
only.
impl<V: Version> BuildHasher<u64> for SpookyVBuildHasherDefault<V>
Available on crate feature
spooky
only.source§impl<V: Version> BuildHasher<u128> for SpookyVBuildHasher<V>
Available on crate feature spooky
only.
impl<V: Version> BuildHasher<u128> for SpookyVBuildHasher<V>
Available on crate feature
spooky
only.source§impl<V: Version> BuildHasher<u128> for SpookyVBuildHasherDefault<V>
Available on crate feature spooky
only.
impl<V: Version> BuildHasher<u128> for SpookyVBuildHasherDefault<V>
Available on crate feature
spooky
only.