pub struct DiffStats { /* private fields */ }
Expand description
Structure describing a hunk of a diff.
Implementations
sourceimpl DiffStats
impl DiffStats
sourcepub fn files_changed(&self) -> usize
pub fn files_changed(&self) -> usize
Get the total number of files chaned in a diff.
sourcepub fn insertions(&self) -> usize
pub fn insertions(&self) -> usize
Get the total number of insertions in a diff
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DiffStats
impl !Send for DiffStats
impl !Sync for DiffStats
impl Unpin for DiffStats
impl UnwindSafe for DiffStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more