[][src]Struct git2::DiffHunk

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

Structure describing a hunk of a diff.

Methods

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) -> &[u8]
[src]

Header text

Auto Trait Implementations

impl<'a> !Send for DiffHunk<'a>

impl<'a> !Sync for DiffHunk<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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