Skip to main content

hash_string

Function hash_string 

Source
pub fn hash_string(s: &str) -> u32
Expand description

Hash a string using the JVM String.hashCode algorithm (UTF-16 codepoints). This matches (hash "foo") in Clojure.