Function hash
fn hash(input: &[u8]) -> Hash
The default hash function.
For an incremental version that accepts multiple writes, see Hasher::new,
Hasher::update, and Hasher::finalize. These two lines are equivalent:
let hash = hash;
# let hash1 = hash;
let hash = new.update.finalize;
# let hash2 = hash;
# assert_eq!;
For output sizes other than 32 bytes, see Hasher::finalize_xof and
OutputReader.
This function is always single-threaded. For multithreading support, see
Hasher::update_rayon.