pub enum LineEdit {
Equal {
old: usize,
new: usize,
line: String,
},
Delete {
old: usize,
line: String,
},
Insert {
new: usize,
line: String,
},
Change {
old: usize,
new: usize,
pieces: Vec<PieceEdit>,
},
}Expand description
What happened to one line. Indexes are 0-based.
Variants§
Equal
The line text is unchanged.
Fields
Delete
The line exists only in the old source.
Insert
The line exists only in the new source.
Change
Both sides have a line here, and their text differs.
Trait Implementations§
impl Eq for LineEdit
impl StructuralPartialEq for LineEdit
Auto Trait Implementations§
impl Freeze for LineEdit
impl RefUnwindSafe for LineEdit
impl Send for LineEdit
impl Sync for LineEdit
impl Unpin for LineEdit
impl UnsafeUnpin for LineEdit
impl UnwindSafe for LineEdit
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