Skip to main content

Differ

Trait Differ 

Source
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§

Source

fn diff(&self, from: &str, to: &str) -> AppResult<Vec<DiffEntry>>

Returns file changes between two refs.

Source

fn diff_stats(&self, from: &str, to: &str) -> AppResult<DiffStats>

Returns aggregated statistics for changes between two refs.

Source

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".

Implementors§