Crate object_merge

source ·

Traits

Combine two containers by combining all of their elements. This does not deduplicate anything for types which support multiple values of the same key.
Combine and deduplicate items in a container that allows duplicates normally (such as Vec) while preserving the original element order.
Combine a type with a template of what values to use when they’re unspecified in the self instance. On containers like maps, this will recursively call merge for elements that have the same key.
Merge the elements in two containers using a custom function for getting the key that should be used for each element. This allows merging Vec.
Combine two map-like containers by recursively calling Merge on elements that have the same key, and adding any missing key values from the template.
Merge and combine the elements in two containers using a custom function for getting the key that should be used for each element. This allows merging and combining Vec.
Used for types like Option when no recursive merging should be performed.