Enum git2::DiffLineType [−][src]
pub enum DiffLineType { Context, Addition, Deletion, ContextEOFNL, AddEOFNL, DeleteEOFNL, FileHeader, HunkHeader, Binary, }
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]
fn clone(&self) -> DiffLineType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DiffLineType
[src]
impl Debug for DiffLineType
[src]
impl PartialEq<DiffLineType> for DiffLineType
[src]
fn eq(&self, other: &DiffLineType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,