Function rscache::util::djd2::hash[][src]

pub fn hash<T: Into<String>>(string: T) -> i32
Expand description

Hashes the string

Errors

Can panic if nth(n) returns None if n >= strings iter length.

Examples

let hash = rscache::util::djd2::hash("huffman");
assert_eq!(hash, 1258058669);