[][src]Struct git2::BlameHunk

pub struct BlameHunk<'blame> { /* fields omitted */ }

Structure that represents a blame hunk.

Methods

impl<'blame> BlameHunk<'blame>
[src]

Returns OID of the commit where this line was last changed

Returns signature of the commit.

Returns line number where this hunk begins.

Note that the start line is counting from 1.

Returns the OID of the commit where this hunk was found.

This will usually be the same as final_commit_id, except when BlameOptions::track_copies_any_commit_copies has been turned on

Returns signature of the commit.

Returns line number where this hunk begins.

Note that the start line is counting from 1.

Returns path to the file where this hunk originated.

Note: None could be returned for non-unicode paths on Widnows.

Tests whether this hunk has been tracked to a boundary commit (the root, or the commit specified in git_blame_options.oldest_commit).

Returns number of lines in this hunk.

Auto Trait Implementations

impl<'blame> !Send for BlameHunk<'blame>

impl<'blame> !Sync for BlameHunk<'blame>

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]

🔬 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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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