pub struct DiffHunk {
pub file: PathBuf,
pub added_lines: Vec<usize>,
}Expand description
A parsed diff hunk: file + which lines were added/changed.
Fields§
§file: PathBufFile path relative to project root.
added_lines: Vec<usize>1-based line numbers of added/changed lines in the new version.
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