DiffAlgorithm

Trait DiffAlgorithm 

Source
pub trait DiffAlgorithm: Send + Sync {
    // Required methods
    fn diff(&self, old: &str, new: &str) -> DiffResult;
    fn name(&self) -> &'static str;
    fn description(&self) -> &'static str;
}
Expand description

Trait defining a diff algorithm interface

Required Methods§

Source

fn diff(&self, old: &str, new: &str) -> DiffResult

Generate a diff between old and new content

Source

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

Get the algorithm name

Source

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

Get algorithm description

Implementors§