pub enum DiffLineKind {
Header,
Added,
Removed,
Context,
ConflictOurs,
ConflictTheirs,
ConflictSeparator,
}Expand description
The type of a single line in a unified diff.
Variants§
Header
@@ ... @@ hunk header.
Added
+ added line.
Removed
- removed line.
Context
Unchanged context line.
ConflictOurs
Line in OURS section of a conflict.
ConflictTheirs
Line in THEIRS section of a conflict.
ConflictSeparator
Conflict marker line (<<<<<<<, =======, >>>>>>>).
Trait Implementations§
Source§impl Clone for DiffLineKind
impl Clone for DiffLineKind
Source§fn clone(&self) -> DiffLineKind
fn clone(&self) -> DiffLineKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiffLineKind
impl Debug for DiffLineKind
Source§impl PartialEq for DiffLineKind
impl PartialEq for DiffLineKind
Source§fn eq(&self, other: &DiffLineKind) -> bool
fn eq(&self, other: &DiffLineKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiffLineKind
Auto Trait Implementations§
impl Freeze for DiffLineKind
impl RefUnwindSafe for DiffLineKind
impl Send for DiffLineKind
impl Sync for DiffLineKind
impl Unpin for DiffLineKind
impl UnsafeUnpin for DiffLineKind
impl UnwindSafe for DiffLineKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more