Function farmhash::hash32 [−][src]
pub fn hash32(s: &[u8]) -> u32
Create a new farmhash based u32 for an array of bytes. Hash value may vary with library version and platform.
Examples
let value: &str = "hello world"; let res32 = farmhash::hash32(&value.as_bytes()); //res32 ==> 430397466