pub struct DiffStats { /* private fields */ }
Expand description
Structure describing a hunk of a diff.
Implementations§
source§impl DiffStats
impl DiffStats
sourcepub fn files_changed(&self) -> usize
pub fn files_changed(&self) -> usize
Get the total number of files changed in a diff.
sourcepub fn insertions(&self) -> usize
pub fn insertions(&self) -> usize
Get the total number of insertions in a diff