hash_name

Function hash_name 

Source
pub const fn hash_name(name: &str) -> i128
Expand description

Computes the hash of a string.

NOTE(#2749) on hash collisions: This function’s output only needs to be deterministic within a particular compilation. Thus, if a user ever reports a hash collision (very unlikely given the <= 16-byte special case), we can strengthen the hash function at that point and publish a new version. Since this is computed at compile time on small strings, we can easily use more expensive and higher-quality hash functions if need be.