pub struct DiffTotals {
pub files_changed: usize,
pub insertions: usize,
pub deletions: usize,
}Expand description
Summary across all files in a stat-style diff.
Fields§
§files_changed: usizeNumber of changed paths.
insertions: usizeTotal insertions across text files.
deletions: usizeTotal deletions across text files.
Implementations§
Source§impl DiffTotals
impl DiffTotals
Sourcepub fn from_files(files: &[FileDiff]) -> Self
pub fn from_files(files: &[FileDiff]) -> Self
Sum per-file stats into totals (binary files contribute to files_changed only).
Trait Implementations§
Source§impl Clone for DiffTotals
impl Clone for DiffTotals
impl Copy for DiffTotals
Source§impl Debug for DiffTotals
impl Debug for DiffTotals
Source§impl Default for DiffTotals
impl Default for DiffTotals
impl Eq for DiffTotals
Source§impl PartialEq for DiffTotals
impl PartialEq for DiffTotals
impl StructuralPartialEq for DiffTotals
Auto Trait Implementations§
impl Freeze for DiffTotals
impl RefUnwindSafe for DiffTotals
impl Send for DiffTotals
impl Sync for DiffTotals
impl Unpin for DiffTotals
impl UnsafeUnpin for DiffTotals
impl UnwindSafe for DiffTotals
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.