pub struct YankSelection;Expand description
Yank selection (y in visual mode).
Copies the selected text to the register without deleting it. Returns to Normal mode after execution.
Trait Implementations§
Source§impl Clone for YankSelection
impl Clone for YankSelection
Source§fn clone(&self) -> YankSelection
fn clone(&self) -> YankSelection
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 YankSelection
impl Command for YankSelection
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 YankSelection
impl CommandHandler for YankSelection
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 YankSelection
impl Debug for YankSelection
Source§impl Default for YankSelection
impl Default for YankSelection
Source§fn default() -> YankSelection
fn default() -> YankSelection
Returns the “default value” for a type. Read more
impl Copy for YankSelection
Auto Trait Implementations§
impl Freeze for YankSelection
impl RefUnwindSafe for YankSelection
impl Send for YankSelection
impl Sync for YankSelection
impl Unpin for YankSelection
impl UnsafeUnpin for YankSelection
impl UnwindSafe for YankSelection
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