[][src]Struct git2::DiffHunk

pub struct DiffHunk<'a> { /* fields omitted */ }

Structure describing a hunk of a diff.

Implementations

impl<'a> DiffHunk<'a>[src]

pub fn old_start(&self) -> u32[src]

Starting line number in old_file

pub fn old_lines(&self) -> u32[src]

Number of lines in old_file

pub fn new_start(&self) -> u32[src]

Starting line number in new_file

pub fn new_lines(&self) -> u32[src]

Number of lines in new_file

pub fn header(&self) -> &'a [u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Header text

Trait Implementations

impl<'a> Debug for DiffHunk<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for DiffHunk<'a>[src]

impl<'a> !Send for DiffHunk<'a>[src]

impl<'a> !Sync for DiffHunk<'a>[src]

impl<'a> Unpin for DiffHunk<'a>[src]

impl<'a> UnwindSafe for DiffHunk<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.