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§
Required Methods§
Sourcefn merge(&mut self, other: &Self) -> Result<(), Self::Error>
fn merge(&mut self, other: &Self) -> Result<(), Self::Error>
Merge this instance with another instance
Sourcefn has_conflict(&self, other: &Self) -> bool
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.