MergeableValue

Trait MergeableValue 

Source
pub trait MergeableValue: Sized {
    // Required method
    fn merge(existing: Option<Self>, incoming: Self) -> Self;
}
Expand description

Trait for merging values when consolidating bucket tables.

Required Methods§

Source

fn merge(existing: Option<Self>, incoming: Self) -> Self

Merge an incoming value with an existing value (if any).

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.

Implementors§