pub struct DiffHunk {
pub old_start: u32,
pub old_lines: u32,
pub new_start: u32,
pub new_lines: u32,
pub content: String,
}Expand description
A single diff hunk representing a contiguous change.
Fields§
§old_start: u32Starting line number in the old file.
old_lines: u32Number of lines from the old file.
new_start: u32Starting line number in the new file.
new_lines: u32Number of lines in the new file.
content: StringThe actual diff content (lines prefixed with +, -, or space).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiffHunk
impl<'de> Deserialize<'de> for DiffHunk
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 Freeze for DiffHunk
impl RefUnwindSafe for DiffHunk
impl Send for DiffHunk
impl Sync for DiffHunk
impl Unpin for DiffHunk
impl UnwindSafe for DiffHunk
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