pub enum DiffDisplayKind {
Metadata,
HunkHeader,
Context,
Addition,
Deletion,
}Expand description
Semantic role used by legacy preview consumers.
Variants§
Metadata
File or parser metadata.
HunkHeader
Hunk range header.
Context
Unchanged context.
Addition
Added content.
Deletion
Deleted content.
Implementations§
Trait Implementations§
Source§impl Clone for DiffDisplayKind
impl Clone for DiffDisplayKind
Source§fn clone(&self) -> DiffDisplayKind
fn clone(&self) -> DiffDisplayKind
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 DiffDisplayKind
Source§impl Debug for DiffDisplayKind
impl Debug for DiffDisplayKind
impl Eq for DiffDisplayKind
Source§impl Hash for DiffDisplayKind
impl Hash for DiffDisplayKind
Source§impl PartialEq for DiffDisplayKind
impl PartialEq for DiffDisplayKind
impl StructuralPartialEq for DiffDisplayKind
Auto Trait Implementations§
impl Freeze for DiffDisplayKind
impl RefUnwindSafe for DiffDisplayKind
impl Send for DiffDisplayKind
impl Sync for DiffDisplayKind
impl Unpin for DiffDisplayKind
impl UnsafeUnpin for DiffDisplayKind
impl UnwindSafe for DiffDisplayKind
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.