hash

Function hash 

Source
pub fn hash(s: &str) -> u64
Expand description

Hash a string using FNV-1a algorithm

This matches the behavior of the C++ hash_ function in string_hash.h

§Arguments

  • s - The string to hash

§Returns

The 64-bit hash value