pub enum OperatorKind {
Delete,
Yank,
Change,
Indent,
Outdent,
}Expand description
Operator identity carried by the reducer. Kept independent of
hjkl-engine so hjkl-vim has no upstream dependency.
Only the five operators that can be entered directly from Normal mode via
bare d / y / c / > / < are listed here. Case operators
(gu / gU / g~) and Reflow (gq) are deferred to chunk 2c-v;
Fold (zf) does not enter bare op-pending so it is omitted entirely.
Variants§
Delete
d — delete.
Yank
y — yank.
Change
c — change (delete + enter Insert mode).
Indent
> — indent.
Outdent
< — outdent.
Trait Implementations§
Source§impl Clone for OperatorKind
impl Clone for OperatorKind
Source§fn clone(&self) -> OperatorKind
fn clone(&self) -> OperatorKind
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 OperatorKind
impl Debug for OperatorKind
Source§impl PartialEq for OperatorKind
impl PartialEq for OperatorKind
Source§fn eq(&self, other: &OperatorKind) -> bool
fn eq(&self, other: &OperatorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OperatorKind
impl Eq for OperatorKind
impl StructuralPartialEq for OperatorKind
Auto Trait Implementations§
impl Freeze for OperatorKind
impl RefUnwindSafe for OperatorKind
impl Send for OperatorKind
impl Sync for OperatorKind
impl Unpin for OperatorKind
impl UnsafeUnpin for OperatorKind
impl UnwindSafe for OperatorKind
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