pub struct DiffHunk {
pub original_start: usize,
pub original_count: usize,
pub new_start: usize,
pub new_count: usize,
pub lines: Vec<String>,
}Expand description
Represents a diff hunk (a contiguous block of changes)
Fields§
§original_start: usizeStarting line in original file
original_count: usizeNumber of lines in original file
new_start: usizeStarting line in new file
new_count: usizeNumber of lines in new file
lines: Vec<String>Lines in the hunk (with +/- prefix)
Trait Implementations§
impl Eq for DiffHunk
impl StructuralPartialEq for DiffHunk
Auto Trait Implementations§
impl Freeze for DiffHunk
impl RefUnwindSafe for DiffHunk
impl Send for DiffHunk
impl Sync for DiffHunk
impl Unpin for DiffHunk
impl UnwindSafe for DiffHunk
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.