pub struct EngineEdit {
pub range: Range<Pos>,
pub replacement: String,
}Expand description
A pending or applied edit. Multi-cursor edits fan out to Vec<EngineEdit>
ordered in reverse byte offset so each entry’s positions remain valid
after the prior entry applies.
Named EngineEdit here to avoid collision with crate::Edit (the
buffer-level edit enum). hjkl-engine re-exports this as
pub use hjkl_buffer::EngineEdit as Edit.
Fields§
§range: Range<Pos>§replacement: StringImplementations§
Trait Implementations§
Source§impl Clone for EngineEdit
impl Clone for EngineEdit
Source§fn clone(&self) -> EngineEdit
fn clone(&self) -> EngineEdit
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 moreSource§impl Debug for EngineEdit
impl Debug for EngineEdit
impl Eq for EngineEdit
Source§impl PartialEq for EngineEdit
impl PartialEq for EngineEdit
Source§fn eq(&self, other: &EngineEdit) -> bool
fn eq(&self, other: &EngineEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EngineEdit
Auto Trait Implementations§
impl Freeze for EngineEdit
impl RefUnwindSafe for EngineEdit
impl Send for EngineEdit
impl Sync for EngineEdit
impl Unpin for EngineEdit
impl UnsafeUnpin for EngineEdit
impl UnwindSafe for EngineEdit
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