pub enum CombinedStructuredLineKind {
Context,
Add,
Del,
}Expand description
Line role in a combined (--cc) hunk (derived from parent-column markers).
Variants§
Context
Unchanged relative to all parents that have the line.
Add
Present on the merge result but not on at least one parent (+ column).
Del
Removed from at least one parent (- column).
Implementations§
Source§impl CombinedStructuredLineKind
impl CombinedStructuredLineKind
Sourcepub fn from_parent_markers(parents: &[char]) -> Self
pub fn from_parent_markers(parents: &[char]) -> Self
Classify a combined line from Git parent-column markers.
Trait Implementations§
Source§impl Clone for CombinedStructuredLineKind
impl Clone for CombinedStructuredLineKind
impl Copy for CombinedStructuredLineKind
Source§impl Debug for CombinedStructuredLineKind
impl Debug for CombinedStructuredLineKind
impl Eq for CombinedStructuredLineKind
impl StructuralPartialEq for CombinedStructuredLineKind
Auto Trait Implementations§
impl Freeze for CombinedStructuredLineKind
impl RefUnwindSafe for CombinedStructuredLineKind
impl Send for CombinedStructuredLineKind
impl Sync for CombinedStructuredLineKind
impl Unpin for CombinedStructuredLineKind
impl UnsafeUnpin for CombinedStructuredLineKind
impl UnwindSafe for CombinedStructuredLineKind
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