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

Calculate the hash for a string.

use pw_tokenizer_core::hash_string;

let hash = hash_string("I 💖 Pigweed");
assert_eq!(hash, 0xe318d1b3);