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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more