pub enum CommandKind {
Operator,
Motion,
TextObject,
ExCommand,
Action,
}Expand description
What kind of command an entry in the registry is. Determines how the dispatcher resolves the invocation.
Variants§
Operator
Acts on a span (d, c, y, gU): resolves the invocation’s
target or range, then runs over it. See
OperatorSpec.
Motion
Computes a new cursor position (w, j, G); also usable as an
operator target. See MotionSpec.
TextObject
Selects a span around the cursor (iw, a(); an operator target or
a Visual selection. See TextObjectSpec.
ExCommand
Reached from the : line; parses its own argument string. See
ExCommandSpec.
Action
A free-form command with no grammar role — most chord bindings that
are not motions or operators (K for LSP hover, fold cycling). See
ActionSpec.
Implementations§
Source§impl CommandKind
impl CommandKind
Trait Implementations§
Source§impl Clone for CommandKind
impl Clone for CommandKind
Source§fn clone(&self) -> CommandKind
fn clone(&self) -> CommandKind
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 moreimpl Copy for CommandKind
Source§impl Debug for CommandKind
impl Debug for CommandKind
Source§impl<'de> Deserialize<'de> for CommandKind
impl<'de> Deserialize<'de> for CommandKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandKind
Source§impl PartialEq for CommandKind
impl PartialEq for CommandKind
Source§impl Serialize for CommandKind
impl Serialize for CommandKind
impl StructuralPartialEq for CommandKind
Auto Trait Implementations§
impl Freeze for CommandKind
impl RefUnwindSafe for CommandKind
impl Send for CommandKind
impl Sync for CommandKind
impl Unpin for CommandKind
impl UnsafeUnpin for CommandKind
impl UnwindSafe for CommandKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.