Enum git2::DiffLineType
source · pub enum DiffLineType {
Context,
Addition,
Deletion,
ContextEOFNL,
AddEOFNL,
DeleteEOFNL,
FileHeader,
HunkHeader,
Binary,
}
Expand description
Line origin constants.
Variants§
Context
These values will be sent to git_diff_line_cb
along with the line
Addition
Deletion
ContextEOFNL
Both files have no LF at end
AddEOFNL
Old has no LF at end, new does
DeleteEOFNL
Old has LF at end, new does not
FileHeader
The following values will only be sent to a git_diff_line_cb
when
the content of a diff is being formatted through git_diff_print
.
HunkHeader
Binary
For “Binary files x and y differ”
Trait Implementations§
source§impl Clone for DiffLineType
impl Clone for DiffLineType
source§fn clone(&self) -> DiffLineType
fn clone(&self) -> DiffLineType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DiffLineType
impl Debug for DiffLineType
source§impl PartialEq<DiffLineType> for DiffLineType
impl PartialEq<DiffLineType> for DiffLineType
source§fn eq(&self, other: &DiffLineType) -> bool
fn eq(&self, other: &DiffLineType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.