pub struct Hunk {
pub old_start: u32,
pub old_len: u32,
pub new_start: u32,
pub new_len: u32,
pub section: String,
pub lines: Vec<Line>,
}Expand description
A run of changes with the context around them.
Fields§
§old_start: u32As in the @@ -old_start,old_len +new_start,new_len @@ header: when a length is 0 the
start is the line before the hunk.
old_len: u32§new_start: u32§new_len: u32§section: StringThe text after the second @@ (often the enclosing function), without the leading space.
lines: Vec<Line>Implementations§
Trait Implementations§
impl Eq for Hunk
impl StructuralPartialEq for Hunk
Auto Trait Implementations§
impl Forget for Hunk
impl Freeze for Hunk
impl Move 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