pub trait DeepMergeDefault: DeepMerge<DefaultPolicy> {
// Provided methods
fn merge(&mut self, other: Self) { ... }
fn merge_ref(&mut self, src: &Self)
where Self: Clone { ... }
fn merge_reporting(&mut self, other: Self) -> MergeOutcome { ... }
fn merge_ref_reporting(&mut self, src: &Self) -> MergeOutcome
where Self: Clone { ... }
fn merged(self, other: Self) -> Self { ... }
}Expand description
Extension trait for convenience methods when using DefaultPolicy
This trait provides shorthand methods for common merge operations without requiring explicit policy arguments.
Provided Methods§
Sourcefn merge_ref(&mut self, src: &Self)where
Self: Clone,
fn merge_ref(&mut self, src: &Self)where
Self: Clone,
Merge by reference using the default policy
Sourcefn merge_reporting(&mut self, other: Self) -> MergeOutcome
fn merge_reporting(&mut self, other: Self) -> MergeOutcome
Merge and report changes using the default policy
Sourcefn merge_ref_reporting(&mut self, src: &Self) -> MergeOutcomewhere
Self: Clone,
fn merge_ref_reporting(&mut self, src: &Self) -> MergeOutcomewhere
Self: Clone,
Merge by reference and report changes using the default policy
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.