pub enum DiffLineKind {
Context,
Added,
Removed,
}Expand description
Per-line classification inside a hunk.
Variants§
Context
Line appears in both old and new - printed without a marker (or with a leading space, depending on the renderer).
Added
Line is in the new file only - rendered with + marker.
Removed
Line is in the old file only - rendered with - marker.
Trait Implementations§
Source§impl Clone for DiffLineKind
impl Clone for DiffLineKind
impl Copy for DiffLineKind
Source§impl Debug for DiffLineKind
impl Debug for DiffLineKind
Source§impl<'de> Deserialize<'de> for DiffLineKind
impl<'de> Deserialize<'de> for DiffLineKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DiffLineKind
Source§impl PartialEq for DiffLineKind
impl PartialEq for DiffLineKind
Source§impl Serialize for DiffLineKind
impl Serialize for DiffLineKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
Checks if this value is equivalent to the given key. Read more
§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.