pub struct FileDiffStats {
pub path: PathBuf,
pub added: usize,
pub removed: usize,
}Expand description
Line additions and removals for one changed file.
Fields§
§path: PathBufPath relative to the repository root.
added: usizeNumber of added lines.
removed: usizeNumber of removed lines.
Trait Implementations§
Source§impl Clone for FileDiffStats
impl Clone for FileDiffStats
Source§fn clone(&self) -> FileDiffStats
fn clone(&self) -> FileDiffStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileDiffStats
impl Debug for FileDiffStats
impl Eq for FileDiffStats
Source§impl PartialEq for FileDiffStats
impl PartialEq for FileDiffStats
impl StructuralPartialEq for FileDiffStats
Auto Trait Implementations§
impl Freeze for FileDiffStats
impl RefUnwindSafe for FileDiffStats
impl Send for FileDiffStats
impl Sync for FileDiffStats
impl Unpin for FileDiffStats
impl UnsafeUnpin for FileDiffStats
impl UnwindSafe for FileDiffStats
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.