pub struct YankCommand;Expand description
Yank operator command - wraps YankOperator for command execution.
This command is executed by the runner when PopResult::ExecuteCommand
is received with command vim:yank. It reads the range from the
command context and delegates to YankOperator.
Trait Implementations§
Source§impl Clone for YankCommand
impl Clone for YankCommand
Source§fn clone(&self) -> YankCommand
fn clone(&self) -> YankCommand
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 YankCommand
impl Command for YankCommand
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 YankCommand
impl CommandHandler for YankCommand
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 YankCommand
impl Debug for YankCommand
Source§impl Default for YankCommand
impl Default for YankCommand
Source§fn default() -> YankCommand
fn default() -> YankCommand
Returns the “default value” for a type. Read more
impl Copy for YankCommand
Auto Trait Implementations§
impl Freeze for YankCommand
impl RefUnwindSafe for YankCommand
impl Send for YankCommand
impl Sync for YankCommand
impl Unpin for YankCommand
impl UnsafeUnpin for YankCommand
impl UnwindSafe for YankCommand
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