pub enum DiffLine {
Equal(String),
Delete(String),
Insert(String),
Modified {
old_segments: Vec<WordSegment>,
new_segments: Vec<WordSegment>,
},
}Expand description
A single line in a text diff.
Variants§
Equal(String)
Unchanged context line.
Delete(String)
Deleted line (only in old text).
Insert(String)
Inserted line (only in new text).
Modified
A modified line with word-level diff segments. Contains old line segments and new line segments.
Trait Implementations§
impl StructuralPartialEq for DiffLine
Auto Trait Implementations§
impl Freeze for DiffLine
impl RefUnwindSafe for DiffLine
impl Send for DiffLine
impl Sync for DiffLine
impl Unpin for DiffLine
impl UnsafeUnpin for DiffLine
impl UnwindSafe for DiffLine
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