Trait Combine

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

Combine two containers by combining all of their elements. This does not deduplicate anything for types which support multiple values of the same key.

Required Methods§

Source

fn 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> Combine for BTreeMap<K, V>
where K: Clone + Ord, V: Clone,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T> Combine for BTreeSet<T>
where T: Ord + Clone,

Source§

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

Source§

impl<T> Combine for Vec<T>
where T: Clone,

Source§

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

Source§

impl<T> Combine for HashSet<T>
where T: Clone + Eq + Hash,

Source§

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

Implementors§