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