pub struct ChangeLine;Expand description
Change current line (cc).
Clears the content of the current line(s) and enters insert mode.
Unlike dd, this keeps the line(s) but empties their content.
The deleted text is stored in the register as linewise.
Trait Implementations§
Source§impl Clone for ChangeLine
impl Clone for ChangeLine
Source§fn clone(&self) -> ChangeLine
fn clone(&self) -> ChangeLine
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 ChangeLine
impl Command for ChangeLine
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 ChangeLine
impl CommandHandler for ChangeLine
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 ChangeLine
impl Debug for ChangeLine
Source§impl Default for ChangeLine
impl Default for ChangeLine
Source§fn default() -> ChangeLine
fn default() -> ChangeLine
Returns the “default value” for a type. Read more
impl Copy for ChangeLine
Auto Trait Implementations§
impl Freeze for ChangeLine
impl RefUnwindSafe for ChangeLine
impl Send for ChangeLine
impl Sync for ChangeLine
impl Unpin for ChangeLine
impl UnsafeUnpin for ChangeLine
impl UnwindSafe for ChangeLine
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