Skip to main content

MergeStrategy

Trait MergeStrategy 

Source
pub trait MergeStrategy: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn merge(&self, base: &str, left: &str, right: &str) -> MergeOutcome;
}
Expand description

The strategy seam: one slot in the Pipeline.

Required Methods§

Source

fn name(&self) -> &'static str

Stable identifier, recorded in PipelineResult::strategy for provenance and review escalation.

Source

fn merge(&self, base: &str, left: &str, right: &str) -> MergeOutcome

Attempts a 3-way merge of left and right against base.

Implementors§