pub enum CommandRegistration {
Motion(MotionSpec),
Operator(OperatorSpec),
TextObject(TextObjectSpec),
ExCommand(ExCommandSpec),
Action(ActionSpec),
}Expand description
What a registered command holds in the registry, beyond its metadata.
Variants§
Motion(MotionSpec)
A motion; see MotionSpec.
Operator(OperatorSpec)
An operator; see OperatorSpec.
TextObject(TextObjectSpec)
A text object; see TextObjectSpec.
ExCommand(ExCommandSpec)
An ex-command; see ExCommandSpec.
Action(ActionSpec)
Free-form App-side action. The dispatcher’s
CommandKind::Action branch invokes the spec’s apply
closure and returns its crate::effect::Effect – almost
always an crate::effect::Effect::AppAction carrying a
typed crate::app_effect::AppEffect. Wired in slice 8.i.0;
populated from the per-mode keymap modules during 8.i.1-3 as
the legacy Action bridge retires. See
docs/dev/notes/8i-approach.md.
Implementations§
Source§impl CommandRegistration
impl CommandRegistration
Sourcepub fn kind(&self) -> CommandKind
pub fn kind(&self) -> CommandKind
The CommandKind this registration dispatches as.
Trait Implementations§
Source§impl Clone for CommandRegistration
impl Clone for CommandRegistration
Source§fn clone(&self) -> CommandRegistration
fn clone(&self) -> CommandRegistration
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 !RefUnwindSafe for CommandRegistration
impl !UnwindSafe for CommandRegistration
impl Freeze for CommandRegistration
impl Send for CommandRegistration
impl Sync for CommandRegistration
impl Unpin for CommandRegistration
impl UnsafeUnpin for CommandRegistration
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