Struct radicle_surf::diff::Hunk
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)