Skip to main content

Crate ihash

Crate ihash 

Source
Expand description

World’s fastest high-quality non-cryptographic hash, deterministic cross-platform XOF, and seekable stream cipher.

Modules§

cc
cpucpu
seed

Structs§

IBuildHasher
core::hash::BuildHasher factory producing IHasher instances with per-thread seeds.
IHasher
Single-register 8-byte streaming core::hash::Hasher optimized for maps and incremental inputs.
Stream
Seekable deterministic keystream and XOF reader backed by the 256-bit root digest.

Traits§

HashMapExtstd
Convenience constructors for ihash::HashMap and ihash::cpu::HashMap.
HashSetExtstd
Convenience constructors for ihash::HashSet and ihash::cpu::HashSet.

Functions§

hash32
Computes a deterministic 32-bit hash equal to the low 32 bits of hash64.
hash64
Computes a deterministic 64-bit hash equal to the low 64 bits of hash128.
hash128
Computes a deterministic 128-bit hash equal to the low 128 bits of hash256.
hash256
Computes a deterministic 256-bit hash equal to the first 32 bytes of hash_xof.
hash_xof
Fills out with a deterministic arbitrary-length extendable-output digest (XOF).

Type Aliases§

HashMapstd
std::collections::HashMap preconfigured with IBuildHasher.
HashSetstd
std::collections::HashSet preconfigured with IBuildHasher.