pub struct Edit {
pub backspaces: usize,
pub deletes: usize,
pub insert: String,
}Expand description
A concrete edit for the emulation layer to apply to the focused
application: press Backspace backspaces times, press Delete
deletes times, then type insert. Splitting the deletion into
a left half (Backspace) and a right half (Delete) lets us
rewrite a word the caret sits inside without first having to
move the caret to the end of it.
Fields§
§backspaces: usizeNumber of Backspace presses to send (chars before the caret).
deletes: usizeNumber of Delete presses to send (chars after the caret).
insert: StringText to type after the deletions.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.