pub struct ChangeCommand;Expand description
Change operator command - wraps ChangeOperator for command execution.
This command is executed by the runner when PopResult::ExecuteCommand
is received with command vim:change. It reads the range from the
command context, deletes the text, and transitions to insert mode.
Trait Implementations§
Source§impl Clone for ChangeCommand
impl Clone for ChangeCommand
Source§fn clone(&self) -> ChangeCommand
fn clone(&self) -> ChangeCommand
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 moreSource§impl Command for ChangeCommand
impl Command for ChangeCommand
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a human-readable description of what this command does.
Source§fn complete(&self, _partial: &str) -> Vec<String>
fn complete(&self, _partial: &str) -> Vec<String>
Get tab-completion candidates for this command’s arguments. Read more
Source§fn priority(&self) -> CommandPriority
fn priority(&self) -> CommandPriority
Registration priority (#545). Read more
Source§impl CommandHandler for ChangeCommand
impl CommandHandler for ChangeCommand
Source§fn execute(
&self,
runtime: &mut SessionRuntime<'_>,
args: &CommandContext,
) -> CommandResult
fn execute( &self, runtime: &mut SessionRuntime<'_>, args: &CommandContext, ) -> CommandResult
Execute the command. Read more
Source§impl Debug for ChangeCommand
impl Debug for ChangeCommand
Source§impl Default for ChangeCommand
impl Default for ChangeCommand
Source§fn default() -> ChangeCommand
fn default() -> ChangeCommand
Returns the “default value” for a type. Read more
impl Copy for ChangeCommand
Auto Trait Implementations§
impl Freeze for ChangeCommand
impl RefUnwindSafe for ChangeCommand
impl Send for ChangeCommand
impl Sync for ChangeCommand
impl Unpin for ChangeCommand
impl UnsafeUnpin for ChangeCommand
impl UnwindSafe for ChangeCommand
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