Function json_ld::utils::hash_map

source ·
pub fn hash_map<'a, K, V, H>(
    map: impl IntoIterator<Item = (&'a K, &'a V)> + 'a,
    hasher: &mut H
)where
    K: 'a + Hash,
    V: 'a + Hash,
    H: Hasher,
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.