Trait MergeCombine

Source
pub trait MergeCombine {
    // Required method
    fn merge_combine(&mut self, template: &Self);
}
Expand description

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.

Required Methods§

Source

fn merge_combine(&mut self, template: &Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<K, V> MergeCombine for BTreeMap<K, V>
where K: Clone + Ord, V: Clone + Merge,

Source§

fn merge_combine(&mut self, template: &Self)

Source§

impl<K, V> MergeCombine for HashMap<K, V>
where K: Clone + Eq + Hash, V: Clone + Merge,

Source§

fn merge_combine(&mut self, template: &Self)

Source§

impl<T> MergeCombine for Option<T>
where T: MergeCombine + Clone,

Source§

fn merge_combine(&mut self, template: &Self)

Implementors§