ShallowMerge

Trait ShallowMerge 

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

Used for types like Option when no recursive merging should be performed.

Required Methods§

Source

fn shallow_merge(&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<T> ShallowMerge for Option<T>
where T: Clone,

Source§

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

Implementors§