Trait fasthash::FastHash
[−]
[src]
pub trait FastHash: BuildHasherExt { type Value; type Seed: Default + Copy + Rand; fn hash_with_seed<T: AsRef<[u8]>>(
bytes: &T,
seed: Self::Seed
) -> Self::Value; fn hash<T: AsRef<[u8]>>(bytes: &T) -> Self::Value { ... } }
Fast non-cryptographic hash functions
Associated Types
type Value
The output hash generated value.
type Seed: Default + Copy + Rand
The seed to generate hash value.
Required Methods
fn hash_with_seed<T: AsRef<[u8]>>(bytes: &T, seed: Self::Seed) -> Self::Value
Hash functions for a byte array. For convenience, a seed is also hashed into the result.
Provided Methods
Implementors
impl FastHash for CityHash32 type Value = u32; type Seed = u32;
impl FastHash for CityHash64 type Value = u64; type Seed = u64;
impl FastHash for CityHash128 type Value = u128; type Seed = u128;
impl FastHash for CityHashCrc128 type Value = u128; type Seed = u128;
impl FastHash for FarmHash32 type Value = u32; type Seed = u32;
impl FastHash for FarmHash64 type Value = u64; type Seed = u64;
impl FastHash for FarmHash128 type Value = u128; type Seed = u128;
impl FastHash for Lookup3 type Value = u32; type Seed = u32;
impl FastHash for MetroHash64_1 type Value = u64; type Seed = u32;
impl FastHash for MetroHash64_2 type Value = u64; type Seed = u32;
impl FastHash for MetroHash128_1 type Value = u128; type Seed = u32;
impl FastHash for MetroHash128_2 type Value = u128; type Seed = u32;
impl FastHash for MetroHash64Crc_1 type Value = u64; type Seed = u32;
impl FastHash for MetroHash64Crc_2 type Value = u64; type Seed = u32;
impl FastHash for MetroHash128Crc_1 type Value = u128; type Seed = u32;
impl FastHash for MetroHash128Crc_2 type Value = u128; type Seed = u32;
impl FastHash for MumHash type Value = u64; type Seed = u64;
impl FastHash for Murmur type Value = u32; type Seed = u32;
impl FastHash for MurmurAligned type Value = u32; type Seed = u32;
impl FastHash for Murmur2 type Value = u32; type Seed = u32;
impl FastHash for Murmur2A type Value = u32; type Seed = u32;
impl FastHash for MurmurNeutral2 type Value = u32; type Seed = u32;
impl FastHash for MurmurAligned2 type Value = u32; type Seed = u32;
impl FastHash for Murmur2_x64_64 type Value = u64; type Seed = u64;
impl FastHash for Murmur2_x86_64 type Value = u64; type Seed = u64;
impl FastHash for Murmur3_x86_32 type Value = u32; type Seed = u32;
impl FastHash for Murmur3_x86_128 type Value = u128; type Seed = u32;
impl FastHash for Murmur3_x64_128 type Value = u128; type Seed = u32;
impl FastHash for SeaHash type Value = u64; type Seed = (u64, u64, u64, u64);
impl FastHash for SpookyHash32 type Value = u32; type Seed = u32;
impl FastHash for SpookyHash64 type Value = u64; type Seed = u64;
impl FastHash for SpookyHash128 type Value = u128; type Seed = u128;
impl FastHash for T1ha64Le type Value = u64; type Seed = u64;
impl FastHash for T1ha64Be type Value = u64; type Seed = u64;
impl FastHash for T1ha32Le type Value = u64; type Seed = u64;
impl FastHash for T1ha32Be type Value = u64; type Seed = u64;
impl FastHash for T1ha64Crc type Value = u64; type Seed = u64;
impl FastHash for XXHash32 type Value = u32; type Seed = u32;
impl FastHash for XXHash64 type Value = u64; type Seed = u64;