pub trait IMergeOverwrite {
// Required method
fn merge_overwrite(self, other: Self) -> Self;
}
Expand description
Types which can be combined with another instance of the same type and for which, in case there are common elements,
the elements of self
would be kept over those held by other
.
For instance, a map-like type with keys shared by both would see the associated values in self
preserved.
This trait is leveraged in Zenoh-Flow for the Configuration and the Vars.
Required Methods§
fn merge_overwrite(self, other: Self) -> Self
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.