pub trait Differ {
// Required methods
fn diff(&self, from: &str, to: &str) -> AppResult<Vec<DiffEntry>>;
fn diff_stats(&self, from: &str, to: &str) -> AppResult<DiffStats>;
fn status(&self) -> AppResult<Vec<StatusEntry>>;
}Expand description
Diff and working tree status operations.
Required Methods§
Sourcefn diff(&self, from: &str, to: &str) -> AppResult<Vec<DiffEntry>>
fn diff(&self, from: &str, to: &str) -> AppResult<Vec<DiffEntry>>
Returns file changes between two refs.
Sourcefn diff_stats(&self, from: &str, to: &str) -> AppResult<DiffStats>
fn diff_stats(&self, from: &str, to: &str) -> AppResult<DiffStats>
Returns aggregated statistics for changes between two refs.
Sourcefn status(&self) -> AppResult<Vec<StatusEntry>>
fn status(&self) -> AppResult<Vec<StatusEntry>>
Returns the working tree status.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".