[−][src]Trait fasthash::FastHash
Fast non-cryptographic hash functions
Associated Types
type Hash: PrimInt
The output hash generated value.
type Seed: Default + Copy
The seed to generate hash value.
Required methods
fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: Self::Seed) -> Self::Hash
Hash functions for a byte array. For convenience, a seed is also hashed into the result.
Provided methods
Loading content...Implementors
impl FastHash for fasthash::city::crc::Hash128
[src]
type Hash = u128
type Seed = u128
fn hash<T: AsRef<[u8]>>(bytes: T) -> u128
[src]
fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: u128) -> u128
[src]
impl FastHash for fasthash::city::Hash128
[src]
type Hash = u128
type Seed = u128
fn hash<T: AsRef<[u8]>>(bytes: T) -> u128
[src]
fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: u128) -> u128
[src]
impl FastHash for fasthash::city::Hash32
[src]
type Hash = u32
type Seed = u32
fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: u32) -> u32
[src]
fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash
[src]
impl FastHash for fasthash::city::Hash64
[src]
type Hash = u64
type Seed = u64
fn hash<T: AsRef<[u8]>>(bytes: T) -> u64
[src]
fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: u64) -> u64
[src]
Hash functions for a byte array. For convenience, a seed is also hashed into the result.