Skip to main content

MergeValue

Trait MergeValue 

Source
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§

Source

fn merge(&mut self, other: Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§