pub trait Merge {
// Required method
fn merge(&mut self, template: &Self);
}
Expand description
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.
Required Methods§
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.