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