pub struct Edit {
pub range: Range<Pos>,
pub replacement: String,
}Expand description
A pending or applied edit. Multi-cursor edits fan out to Vec<Edit>
ordered in reverse byte offset so each entry’s positions remain valid
after the prior entry applies.
Fields§
§range: Range<Pos>§replacement: StringImplementations§
Trait Implementations§
impl Eq for Edit
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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