[][src]Trait fasthash::FastHash

pub trait FastHash: BuildHasherExt {
    type Hash: PrimInt;
    type Seed: Default + Copy;
    fn hash_with_seed<T: AsRef<[u8]>>(bytes: T, seed: Self::Seed) -> Self::Hash;

    fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash { ... }
}

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.

Loading content...

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.

Loading content...

Provided methods

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash

Hash functions for a byte array.

Loading content...

Implementors

impl FastHash for fasthash::city::crc::Hash128[src]

type Hash = u128

type Seed = u128

impl FastHash for fasthash::city::Hash128[src]

type Hash = u128

type Seed = u128

impl FastHash for fasthash::city::Hash32[src]

type Hash = u32

type Seed = u32

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_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.

impl FastHash for fasthash::farm::Hash128[src]

type Hash = u128

type Seed = u128

impl FastHash for fasthash::farm::Hash32[src]

type Hash = u32

type Seed = u32

impl FastHash for fasthash::farm::Hash64[src]

type Hash = u64

type Seed = u64

impl FastHash for fasthash::lookup3::Hash32[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::crc::Hash128_1[src]

type Hash = u128

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::crc::Hash128_2[src]

type Hash = u128

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::crc::Hash64_1[src]

type Hash = u64

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::crc::Hash64_2[src]

type Hash = u64

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::Hash128_1[src]

type Hash = u128

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::Hash128_2[src]

type Hash = u128

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::Hash64_1[src]

type Hash = u64

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::metro::Hash64_2[src]

type Hash = u64

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::mum::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::murmur::Hash32[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::murmur::Hash32Aligned[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::murmur2::Hash32[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash32A[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::murmur2::Hash32Aligned[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash32Neutral[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash64_x64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash64_x86[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash128_x64[src]

type Hash = u128

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash128_x86[src]

type Hash = u128

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::murmur3::Hash32[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::sea::Hash64[src]

type Hash = u64

type Seed = (u64, u64, u64, u64)

impl FastHash for fasthash::spooky::Hash128[src]

type Hash = u128

type Seed = u128

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::spooky::Hash32[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::spooky::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::t1ha::t1ha0::aes::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::t1ha::t1ha0::avx::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::t1ha::t1ha0::avx2::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::t1ha::t1ha0::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash64Be[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash64Le[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash128AtOnce[src]

type Hash = u128

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for Hash64AtOnce[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::xx::Hash32[src]

type Hash = u32

type Seed = u32

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

impl FastHash for fasthash::xx::Hash64[src]

type Hash = u64

type Seed = u64

fn hash<T: AsRef<[u8]>>(bytes: T) -> Self::Hash[src]

Loading content...