pub enum CommandKind {
Leaf,
Alias(&'static str),
Motion,
Operator,
ObjectPrefix,
Prefix,
TextLine,
AbsorbChar(AbsorbKind),
AbsorbRegister,
Contextual,
Soon,
}Expand description
Dispatch-independent command category. Engine-specific leaf handlers remain in the engine’s adapter over this data.
Variants§
Leaf
A direct command or semantic action.
Alias(&'static str)
Motion
A grammar motion.
Operator
A grammar operator.
ObjectPrefix
An object prefix.
Prefix
A prefix: children follow; which-key renders them.
TextLine
Free-text line: a modal text field, not a key sequence.
AbsorbChar(AbsorbKind)
One-char absorbers.
AbsorbRegister
Register selection.
Contextual
Implemented by a modal field or Ex host, not the document trie.
Soon
Planned slot: no dispatch yet.
Trait Implementations§
Source§impl Clone for CommandKind
impl Clone for CommandKind
impl Copy for CommandKind
Source§impl Debug for CommandKind
impl Debug for CommandKind
impl Eq for CommandKind
Source§impl PartialEq for CommandKind
impl PartialEq 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