Generic (non-cryptographic) hashing support
The main purpose of this module is to support the hashing functionality required for hashed collections such as HashMap in a generic and algorithm-agnostic fashion. See the Hashable module for how to make a custom type hashable and Hasher for implementing other hashing algorithms.
Modules
Protocols
Hashing algorithms.
Types that can be hashed.
Mixin to provide a default implementation of Hashable for a type.
Functions
-
fn hash_of<T, H = DefaultHash>(val: &T) -> u64
T: Hashable<T, H>H: Hasher<H>Calculate the hash of a value passed by pointer.
Types
-
type DefaultHash = Xxh64
The default hashing algorithm used for hash-based collections if none is specified.