pub struct Hunk {
pub id: usize,
pub change_ids: Vec<usize>,
pub old_start: Option<usize>,
pub new_start: Option<usize>,
pub insertions: usize,
pub deletions: usize,
}Expand description
A hunk is a group of related changes that are close together
Fields§
§id: usizeUnique ID for this hunk
change_ids: Vec<usize>IDs of changes in this hunk (in order)
old_start: Option<usize>Starting line number in old file
new_start: Option<usize>Starting line number in new file
insertions: usizeNumber of insertions in this hunk
deletions: usizeNumber of deletions in this hunk
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hunk
impl RefUnwindSafe for Hunk
impl Send for Hunk
impl Sync for Hunk
impl Unpin for Hunk
impl UnsafeUnpin for Hunk
impl UnwindSafe for Hunk
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