pub struct Hunk<'a, T: ?Sized> { /* private fields */ }
Expand description
Represents a group of differing lines between two files
Implementations§
source§impl<'a, T: ?Sized> Hunk<'a, T>
impl<'a, T: ?Sized> Hunk<'a, T>
sourcepub fn old_range(&self) -> HunkRange
pub fn old_range(&self) -> HunkRange
Returns the corresponding range for the old file in the hunk
sourcepub fn new_range(&self) -> HunkRange
pub fn new_range(&self) -> HunkRange
Returns the corresponding range for the new file in the hunk
sourcepub fn function_context(&self) -> Option<&T>
pub fn function_context(&self) -> Option<&T>
Returns the function context (if any) for the hunk
Trait Implementations§
impl<'a, T: Eq + ?Sized> Eq for Hunk<'a, T>
impl<'a, T: ?Sized> StructuralPartialEq for Hunk<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Hunk<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for Hunk<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for Hunk<'a, T>
impl<'a, T> Sync for Hunk<'a, T>
impl<'a, T> Unpin for Hunk<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for Hunk<'a, T>where
T: RefUnwindSafe + ?Sized,
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
)