Skip to main content

hash

Function hash 

Source
pub fn hash<T: Hash>(data: &T) -> u64
Expand description

Hashes data with a fast, non-cryptographic hash, for use as a cache key within one process.

The value can change between builds, so don’t store it or compare it across runs.