pub struct LineChange {
pub old: Range<usize>,
pub new: Range<usize>,
pub inner: Vec<CharChange>,
pub moved: Option<usize>,
}Expand description
One changed block: lines old were replaced by lines new (either may be empty).
Fields§
§old: Range<usize>§new: Range<usize>§inner: Vec<CharChange>Char ranges (offsets into each text) that differ inside the block.
moved: Option<usize>The index of the change this block moved to or from, when its lines reappear unchanged elsewhere.
Trait Implementations§
Source§impl Clone for LineChange
impl Clone for LineChange
Source§impl Debug for LineChange
impl Debug for LineChange
impl Eq for LineChange
Source§impl PartialEq for LineChange
impl PartialEq for LineChange
impl StructuralPartialEq for LineChange
Auto Trait Implementations§
impl Forget for LineChange
impl Freeze for LineChange
impl Move for LineChange
impl RefUnwindSafe for LineChange
impl Send for LineChange
impl Sync for LineChange
impl Unpin for LineChange
impl UnsafeUnpin for LineChange
impl UnwindSafe for LineChange
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