pub trait Mergeable {
// Required method
fn merge_with(&self, other: &Self) -> Self;
}Expand description
Represents a type of value that can merge with another value to produce a new value.
This is implemented for set of rules, represented by the FmtRules trait.
Required Methods§
Sourcefn merge_with(&self, other: &Self) -> Self
fn merge_with(&self, other: &Self) -> Self
Merges this value with the other, and returns the result of the merge.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".