pub struct Hunk {
pub old_start: Option<u64>,
pub new_start: Option<u64>,
pub lines: Vec<String>,
}Expand description
A diff hunk given directly.
Fields§
§old_start: Option<u64>The old side’s first line.
new_start: Option<u64>The new side’s first line.
lines: Vec<String>Lines starting with +, - or a space.
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