Enum git2::DiffLineType[][src]

pub enum DiffLineType {
    Context,
    Addition,
    Deletion,
    ContextEOFNL,
    AddEOFNL,
    DeleteEOFNL,
    FileHeader,
    HunkHeader,
    Binary,
}

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

impl Clone for DiffLineType[src]

impl Copy for DiffLineType[src]

impl Debug for DiffLineType[src]

impl PartialEq<DiffLineType> for DiffLineType[src]

impl StructuralPartialEq for DiffLineType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.