Module merge

Source
Expand description

Built-in merge functions.

Functionsยง

append_vec
Append the items from the next vector to the end of the previous vector.
discard
Discard both previous and next values and return None.
merge_btreemap
Shallow merge the next BTreeMap into the previous BTreeMap. Any items in the next BTreeMap will overwrite items in the previous BTreeMap of the same key.
merge_btreeset
Shallow merge the next BTreeSet into the previous BTreeSet, overwriting duplicates.
merge_hashmap
Shallow merge the next HashMap into the previous HashMap. Any items in the next HashMap will overwrite items in the previous HashMap of the same key.
merge_hashset
Shallow merge the next HashSet into the previous HashSet, overwriting duplicates.
prepend_vec
Prepend the items from the next vector to the start of the previous vector.
preserve
Always preserve the previous value over the next value.
replace
Always replace the previous value with the next value.