pub enum GutterDiffKind {
Add,
Remove,
Change,
Conflict,
}Expand description
Renderer-agnostic diff-sign kind for the gutter diff column.
Mirrors DiffSignKind without importing lattice-host.
Variants§
Add
Line added relative to the diff base (+, sign diff.add).
Remove
Line(s) removed at this position (-, sign diff.remove).
Change
Line modified relative to the diff base (~, sign diff.change).
Conflict
Line inside an unresolved merge conflict (?, sign diff.conflict).
Trait Implementations§
Source§impl Clone for GutterDiffKind
impl Clone for GutterDiffKind
Source§fn clone(&self) -> GutterDiffKind
fn clone(&self) -> GutterDiffKind
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 moreimpl Copy for GutterDiffKind
Source§impl Debug for GutterDiffKind
impl Debug for GutterDiffKind
impl Eq for GutterDiffKind
Source§impl PartialEq for GutterDiffKind
impl PartialEq for GutterDiffKind
impl StructuralPartialEq for GutterDiffKind
Auto Trait Implementations§
impl Freeze for GutterDiffKind
impl RefUnwindSafe for GutterDiffKind
impl Send for GutterDiffKind
impl Sync for GutterDiffKind
impl Unpin for GutterDiffKind
impl UnsafeUnpin for GutterDiffKind
impl UnwindSafe for GutterDiffKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.