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 for DiffLineType
impl PartialEq 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 ==
.impl Copy for DiffLineType
impl StructuralPartialEq for DiffLineType
Auto Trait Implementations§
impl Freeze for DiffLineType
impl RefUnwindSafe for DiffLineType
impl Send for DiffLineType
impl Sync for DiffLineType
impl Unpin for DiffLineType
impl UnwindSafe for DiffLineType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more