pub trait MergeValue: Sized {
// Required method
fn merge(&mut self, other: Self);
}Expand description
Utility trait to handle merging values when visiting maps, in the case of a key changing. This avoids accidental data loss from keys overriding eachother.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".