pub struct Hunk {
pub id: HunkId,
pub old_start: u32,
pub old_lines: u32,
pub new_start: u32,
pub new_lines: u32,
pub context: String,
pub lines: Vec<DiffLine>,
}Fields§
§id: HunkId§old_start: u32§old_lines: u32§new_start: u32§new_lines: u32§context: Stringgit’s section heading: the enclosing function/section name git emits
after the second @@ of the hunk header. Empty when git gives none
(e.g. a top-of-file hunk). Excluded from id, which keys only on lines.
lines: Vec<DiffLine>Implementations§
Trait Implementations§
impl Eq for Hunk
impl StructuralPartialEq for Hunk
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