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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffStats
impl RefUnwindSafe for DiffStats
impl !Send for DiffStats
impl !Sync for DiffStats
impl Unpin for DiffStats
impl UnwindSafe for DiffStats
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more