pub enum CodeChangeLineKind {
Context,
Addition,
Deletion,
}Expand description
Kind of one line in a code-change hunk.
Variants§
Context
Unchanged contextual source.
Addition
A line introduced by the new file content.
Deletion
A line removed from the old file content.
Trait Implementations§
Source§impl Clone for CodeChangeLineKind
impl Clone for CodeChangeLineKind
Source§fn clone(&self) -> CodeChangeLineKind
fn clone(&self) -> CodeChangeLineKind
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 CodeChangeLineKind
Source§impl Debug for CodeChangeLineKind
impl Debug for CodeChangeLineKind
Source§impl<'de> Deserialize<'de> for CodeChangeLineKind
impl<'de> Deserialize<'de> for CodeChangeLineKind
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 CodeChangeLineKind
Source§impl Ord for CodeChangeLineKind
impl Ord for CodeChangeLineKind
Source§fn cmp(&self, other: &CodeChangeLineKind) -> Ordering
fn cmp(&self, other: &CodeChangeLineKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodeChangeLineKind
impl PartialEq for CodeChangeLineKind
Source§impl PartialOrd for CodeChangeLineKind
impl PartialOrd for CodeChangeLineKind
Source§impl Serialize for CodeChangeLineKind
impl Serialize for CodeChangeLineKind
impl StructuralPartialEq for CodeChangeLineKind
Auto Trait Implementations§
impl Freeze for CodeChangeLineKind
impl RefUnwindSafe for CodeChangeLineKind
impl Send for CodeChangeLineKind
impl Sync for CodeChangeLineKind
impl Unpin for CodeChangeLineKind
impl UnsafeUnpin for CodeChangeLineKind
impl UnwindSafe for CodeChangeLineKind
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