pub enum Line<'a> {
Add(&'a str),
Remove(&'a str),
Context(&'a str),
EndOfFile(&'a str),
}
Expand description
A line of the old file, new file, or both
Variants§
Add(&'a str)
A line added to the old file in the new file
Remove(&'a str)
A line removed from the old file in the new file
Context(&'a str)
A line provided for context in the diff (unchanged); from both the old and the new file
EndOfFile(&'a str)
End of file with an empty line
Trait Implementations§
impl<'a> Eq for Line<'a>
impl<'a> StructuralPartialEq for Line<'a>
Auto Trait Implementations§
impl<'a> Freeze for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnwindSafe for Line<'a>
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