pub struct BlameHunk<'blame> { /* private fields */ }
Expand description

Structure that represents a blame hunk.

Implementations

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 Windows.

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.