pub enum LineDiff {
New(usize),
Delete(usize),
Keep(usize, usize),
}
Variants§
New(usize)
This line was introduced in the second file, and the usize
is the line number in the
second file.
Delete(usize)
This line was in the first file, but got deleted.
Keep(usize, usize)
This line was present in both files; the first usize
is the line number in the first
file, and the second is the line number in the second file.
Trait Implementations§
impl Copy for LineDiff
impl Eq for LineDiff
impl StructuralPartialEq for LineDiff
Auto Trait Implementations§
impl Freeze for LineDiff
impl RefUnwindSafe for LineDiff
impl Send for LineDiff
impl Sync for LineDiff
impl Unpin for LineDiff
impl UnwindSafe for LineDiff
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