Function map

Source
pub fn map<V>(
    current: &mut V,
    new: V,
    key_comparators: &[fn(&V::Item, &V::Item) -> bool],
    merge_item: fn(&mut V::Item, V::Item),
)
where V: AsOptVec,
Expand description

The list is treated as a map.

Any items with matching keys will be deep-merged. Any items in new that are not in current will be appended to current.