Function cpp_to_rust_common::utils::add_to_multihash
[−]
[src]
pub fn add_to_multihash<K: Eq + Hash + Clone, T, V: Default + Extend<T>>(
hash: &mut HashMap<K, V>,
key: K,
value: T
)
Creates and empty collection at hash[key]
if there isn't one already.
Adds value
to hash[key]
collection.