DeepMergeDefault

Trait DeepMergeDefault 

Source
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§

Source

fn merge(&mut self, other: Self)

Merge using the default policy

Source

fn merge_ref(&mut self, src: &Self)
where Self: Clone,

Merge by reference using the default policy

Source

fn merge_reporting(&mut self, other: Self) -> MergeOutcome

Merge and report changes using the default policy

Source

fn merge_ref_reporting(&mut self, src: &Self) -> MergeOutcome
where Self: Clone,

Merge by reference and report changes using the default policy

Source

fn merged(self, other: Self) -> Self

Non-mutating merge 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.

Implementors§