pub struct DisplayEdit {
pub old: Range<DisplayPoint>,
pub new: Range<DisplayPoint>,
}Expand description
A display-space edit region: what TabMap::sync would return if a
display-space invalidation reader ever appeared. There is none today — the
FoldMap re-derives per frame and word wrap is rejected — so sync returns
() and downstream caches (line cache, paragraph cache) invalidate off the
buffer-space edit they already consume.
If it is ever produced, old ranges the pre-sync snapshot and new the
post-sync one, read downstream as a region to invalidate rather than a
description of the change. It stays row-preserving: within one line old
and new share their row and differ only in cell columns; a line
insert/delete shifts whole rows.
Fields§
§old: Range<DisplayPoint>Pre-sync display-space range.
new: Range<DisplayPoint>Post-sync display-space range.
Trait Implementations§
Source§impl Clone for DisplayEdit
impl Clone for DisplayEdit
Source§fn clone(&self) -> DisplayEdit
fn clone(&self) -> DisplayEdit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DisplayEdit
impl RefUnwindSafe for DisplayEdit
impl Send for DisplayEdit
impl Sync for DisplayEdit
impl Unpin for DisplayEdit
impl UnsafeUnpin for DisplayEdit
impl UnwindSafe for DisplayEdit
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