Mergeable

Trait Mergeable 

Source
pub trait Mergeable:
    Clone
    + Send
    + Sync {
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn merge(&mut self, other: &Self) -> Result<(), Self::Error>;
    fn has_conflict(&self, other: &Self) -> bool;
}
Expand description

Trait for types that can be merged with other instances

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn merge(&mut self, other: &Self) -> Result<(), Self::Error>

Merge this instance with another instance

Source

fn has_conflict(&self, other: &Self) -> bool

Check if there’s a conflict with another instance

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§