pub trait MergeRule<K, C, V> {
// Required method
fn should_accept(
&self,
local_col: u64,
local_db: u64,
local_node: NodeId,
remote_col: u64,
remote_db: u64,
remote_node: NodeId,
) -> bool;
// Provided method
fn should_accept_change(
&self,
local: &Change<K, C, V>,
remote: &Change<K, C, V>,
) -> bool { ... }
}Expand description
Trait for merge rules that determine conflict resolution.
Implementations should return true if the remote change should be accepted,
false otherwise.
Required Methods§
Provided Methods§
Sourcefn should_accept_change(
&self,
local: &Change<K, C, V>,
remote: &Change<K, C, V>,
) -> bool
fn should_accept_change( &self, local: &Change<K, C, V>, remote: &Change<K, C, V>, ) -> bool
Convenience method for Change objects