pub enum ChangeType {
OperatorMotion {
operator: OperatorType,
linewise: bool,
},
OperatorTextObject {
operator: OperatorType,
linewise: bool,
},
Insert {
text: String,
},
}Expand description
Type of change recorded for dot repeat.
Variants§
OperatorMotion
Operator with motion (e.g., dw, c$).
Fields
§
operator: OperatorTypeThe operator type (Delete, Yank, Change).
OperatorTextObject
Operator with text object (e.g., diw, ci").
Insert
Insert mode text (e.g., ihello<Esc>).
Trait Implementations§
Source§impl Clone for ChangeType
impl Clone for ChangeType
Source§fn clone(&self) -> ChangeType
fn clone(&self) -> ChangeType
Returns a duplicate of the value. Read more
1.0.0 · 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 ChangeType
impl RefUnwindSafe for ChangeType
impl Send for ChangeType
impl Sync for ChangeType
impl Unpin for ChangeType
impl UnsafeUnpin for ChangeType
impl UnwindSafe for ChangeType
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