Skip to main content

Mergeable

Trait Mergeable 

Source
pub trait Mergeable: Sized {
    // Required method
    fn merge(self, other: Self) -> Self;
}
Expand description

Trait for types that support deep merge operations.

Required Methods§

Source

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

Merge another value into this one, with other taking priority on conflicts.

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§