Expand description
A line in either the old file, new file, or both.
A Line
contains the terminating newline character \n
unless it is the final
line in the file and the file does not end with a newline character.
Variants
Context(&'a T)
A line providing context in the diff which is present in both the old and new file
Delete(&'a T)
A line deleted from the old file
Insert(&'a T)
A line inserted to the new file
Trait Implementations
sourceimpl<'a, T: PartialEq + ?Sized> PartialEq<Line<'a, T>> for Line<'a, T>
impl<'a, T: PartialEq + ?Sized> PartialEq<Line<'a, T>> for Line<'a, T>
impl<T: ?Sized> Copy for Line<'_, T>
impl<'a, T: Eq + ?Sized> Eq for Line<'a, T>
impl<'a, T: ?Sized> StructuralEq for Line<'a, T>
impl<'a, T: ?Sized> StructuralPartialEq for Line<'a, T>
Auto Trait Implementations
impl<'a, T: ?Sized> RefUnwindSafe for Line<'a, T> where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Send for Line<'a, T> where
T: Sync,
impl<'a, T: ?Sized> Sync for Line<'a, T> where
T: Sync,
impl<'a, T: ?Sized> Unpin for Line<'a, T>
impl<'a, T: ?Sized> UnwindSafe for Line<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more