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
sourceimpl Clone for DiffLineType
impl Clone for DiffLineType
sourcefn clone(&self) -> DiffLineType
fn clone(&self) -> DiffLineType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DiffLineType
impl Debug for DiffLineType
sourceimpl PartialEq<DiffLineType> for DiffLineType
impl PartialEq<DiffLineType> for DiffLineType
impl Copy for DiffLineType
impl StructuralPartialEq for DiffLineType
Auto Trait Implementations
impl RefUnwindSafe for DiffLineType
impl Send for DiffLineType
impl Sync for DiffLineType
impl Unpin for DiffLineType
impl UnwindSafe for DiffLineType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more