Enum git2::DiffLineType [−][src]
pub enum DiffLineType {
Context,
Addition,
Deletion,
ContextEOFNL,
AddEOFNL,
DeleteEOFNL,
FileHeader,
HunkHeader,
Binary,
}Expand description
Line origin constants.
Variants
These values will be sent to git_diff_line_cb along with the line
Both files have no LF at end
Old has no LF at end, new does
Old has LF at end, new does not
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.
For “Binary files x and y differ”
Trait Implementations
impl Clone for DiffLineType[src]
impl Clone for DiffLineType[src]fn clone(&self) -> DiffLineType[src]
fn clone(&self) -> DiffLineType[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for DiffLineType[src]
impl Debug for DiffLineType[src]impl PartialEq<DiffLineType> for DiffLineType[src]
impl PartialEq<DiffLineType> for DiffLineType[src]impl Copy for DiffLineType[src]
impl StructuralPartialEq for DiffLineType[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more