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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".