pub struct DiffHunk {
pub new_start: u32,
pub new_count: u32,
pub content: Vec<String>,
}Expand description
A hunk of changed lines in a diff
Fields§
§new_start: u32Starting line in the new file (1-indexed)
new_count: u32Number of lines in the new file
content: Vec<String>The actual new lines content
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffHunk
impl RefUnwindSafe for DiffHunk
impl Send for DiffHunk
impl Sync for DiffHunk
impl Unpin for DiffHunk
impl UnsafeUnpin 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