Struct git2::DiffStats [−][src]
Structure describing a hunk of a diff.
Implementations
impl DiffStats
[src]
pub fn files_changed(&self) -> usize
[src]
Get the total number of files chaned in a diff.
pub fn insertions(&self) -> usize
[src]
Get the total number of insertions in a diff
pub fn deletions(&self) -> usize
[src]
Get the total number of deletions in a diff
pub fn to_buf(
&self,
format: DiffStatsFormat,
width: usize
) -> Result<Buf, Error>
[src]
&self,
format: DiffStatsFormat,
width: usize
) -> Result<Buf, Error>
Print diff statistics to a Buf
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,