pub struct LineEdit {
pub start: usize,
pub old_end: usize,
pub new_end: usize,
}Expand description
How one edit changed the lines: lines start..=old_end were replaced by
lines start..=new_end, and every later line moved by new_end - old_end.
old_end == new_end == usize::MAX means “everything from start on may
have changed” (the log overflowed).
Fields§
§start: usize§old_end: usize§new_end: usizeImplementations§
Source§impl LineEdit
impl LineEdit
pub fn everything_from(start: usize) -> Self
pub fn is_everything(&self) -> bool
Trait Implementations§
impl Copy for LineEdit
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