Function json_ld_core::utils::hash_map

source ·
pub fn hash_map<'a, K: 'a + Hash, V: 'a + Hash, H: Hasher>(
    map: impl 'a + IntoIterator<Item = (&'a K, &'a V)>,
    hasher: &mut H
)
Expand description

Hash a map.

The standard library does not provide (yet) a Hash implementation for unordered map types. This can be used instead.

Note that this function not particularly strong and does not protect against DoS attacks.