pub enum DiffLine<'a> {
Keep(&'a str),
Remove(&'a str),
Add(&'a str),
}Expand description
A single line in a diff hunk — either kept, removed, or added.
Variants§
Keep(&'a str)
Line present in both old and new (unchanged).
Remove(&'a str)
Line present only in old (removed).
Add(&'a str)
Line present only in new (added).
Trait Implementations§
impl<'a> StructuralPartialEq for DiffLine<'a>
Auto Trait Implementations§
impl<'a> Forget for DiffLine<'a>
impl<'a> Freeze for DiffLine<'a>
impl<'a> RefUnwindSafe for DiffLine<'a>
impl<'a> Send for DiffLine<'a>
impl<'a> Sync for DiffLine<'a>
impl<'a> Unpin for DiffLine<'a>
impl<'a> UnsafeUnpin for DiffLine<'a>
impl<'a> UnwindSafe for DiffLine<'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