Struct git::CommitDiff
source · [−]pub struct CommitDiff { /* private fields */ }Expand description
Represents a commit with a diff
Implementations
sourceimpl CommitDiff
impl CommitDiff
sourcepub const fn file_statuses(&self) -> &Vec<FileStatus>
pub const fn file_statuses(&self) -> &Vec<FileStatus>
The file statuses
sourcepub const fn number_files_changed(&self) -> usize
pub const fn number_files_changed(&self) -> usize
The total number of files changed in the diff
sourcepub const fn number_insertions(&self) -> usize
pub const fn number_insertions(&self) -> usize
The total number of insertions in the diff
sourcepub const fn number_deletions(&self) -> usize
pub const fn number_deletions(&self) -> usize
The total number of deletions in the diff
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CommitDiff
impl Send for CommitDiff
impl Sync for CommitDiff
impl Unpin for CommitDiff
impl UnwindSafe for CommitDiff
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more