pub enum DiffLine {
Added {
line: u64,
content: String,
},
Removed {
line: u64,
content: String,
},
Context {
line: u64,
content: String,
},
}Expand description
A single line in a unified diff output.
Variants§
Added
A line that was added to the file.
Removed
A line that was removed from the file.
Context
An unchanged context line surrounding the actual changes. Provides locality so a reviewer can see where the edit landed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffLine
impl<'de> Deserialize<'de> for DiffLine
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
Auto Trait Implementations§
impl Forget for DiffLine
impl Freeze for DiffLine
impl Move for DiffLine
impl RefUnwindSafe for DiffLine
impl Send for DiffLine
impl Sync for DiffLine
impl Unpin for DiffLine
impl UnsafeUnpin for DiffLine
impl UnwindSafe for DiffLine
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