pub trait Mergeable {
// Required method
fn merge_with(self, other: Self) -> Self;
}
Expand description
A trait for merging two values.
Required Methods§
Sourcefn merge_with(self, other: Self) -> Self
fn merge_with(self, other: Self) -> Self
Merge other
into self
and return the result.
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.