pub struct Hunk<T> {
pub header: Line,
pub lines: Vec<T>,
pub old: Range<u32>,
pub new: Range<u32>,
}Expand description
A set of changes across multiple lines.
The parameter T can be an Addition, Deletion, or
Modification.
Fields§
§header: Line§lines: Vec<T>§old: Range<u32>Old line range.
new: Range<u32>New line range.
Trait Implementations§
impl<T: Eq> Eq for Hunk<T>
impl<T> StructuralPartialEq for Hunk<T>
Auto Trait Implementations§
impl<T> Freeze for Hunk<T>
impl<T> RefUnwindSafe for Hunk<T>where
T: RefUnwindSafe,
impl<T> Send for Hunk<T>where
T: Send,
impl<T> Sync for Hunk<T>where
T: Sync,
impl<T> Unpin for Hunk<T>where
T: Unpin,
impl<T> UnwindSafe for Hunk<T>where
T: UnwindSafe,
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