pub enum LastChange {
OpMotion {
op: Operator,
motion: Motion,
count: usize,
inserted: Option<String>,
},
OpTextObj {
op: Operator,
obj: TextObject,
inner: bool,
inserted: Option<String>,
},
LineOp {
op: Operator,
count: usize,
inserted: Option<String>,
},
CharDel {
forward: bool,
count: usize,
},
ReplaceChar {
ch: char,
count: usize,
},
ToggleCase {
count: usize,
},
JoinLine {
count: usize,
},
Paste {
before: bool,
count: usize,
},
DeleteToEol {
inserted: Option<String>,
},
OpenLine {
above: bool,
inserted: String,
},
InsertAt {
entry: InsertEntry,
inserted: String,
count: usize,
},
}Expand description
Information needed to replay a mutating change via ..
Variants§
OpMotion
Operator over a motion.
OpTextObj
Operator over a text-object.
LineOp
dd, cc, yy with a count.
CharDel
x, X with a count.
ReplaceChar
r<ch> with a count.
ToggleCase
~ with a count.
JoinLine
J with a count.
Paste
p / P with a count.
DeleteToEol
D (delete to EOL).
OpenLine
o / O + the inserted text.
InsertAt
i/I/a/A + inserted text.
Trait Implementations§
Source§impl Clone for LastChange
impl Clone for LastChange
Source§fn clone(&self) -> LastChange
fn clone(&self) -> LastChange
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 LastChange
impl RefUnwindSafe for LastChange
impl Send for LastChange
impl Sync for LastChange
impl Unpin for LastChange
impl UnsafeUnpin for LastChange
impl UnwindSafe for LastChange
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