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§
Sourcefn diff(&self, old: &str, new: &str) -> DiffResult
fn diff(&self, old: &str, new: &str) -> DiffResult
Generate a diff between old and new content
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get algorithm description