pub struct WriteCommand;Expand description
Write command - save the buffer to disk.
Behavior:
:w- Write current buffer to its file:w filename- Write current buffer to specified file
Trait Implementations§
Source§impl Clone for WriteCommand
impl Clone for WriteCommand
Source§fn clone(&self) -> WriteCommand
fn clone(&self) -> WriteCommand
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 WriteCommand
impl Command for WriteCommand
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 WriteCommand
impl CommandHandler for WriteCommand
Source§fn execute(
&self,
runtime: &mut SessionRuntime<'_>,
ctx: &CommandContext,
) -> CommandResult
fn execute( &self, runtime: &mut SessionRuntime<'_>, ctx: &CommandContext, ) -> CommandResult
Execute the command. Read more
Source§impl Debug for WriteCommand
impl Debug for WriteCommand
impl Copy for WriteCommand
Auto Trait Implementations§
impl Freeze for WriteCommand
impl RefUnwindSafe for WriteCommand
impl Send for WriteCommand
impl Sync for WriteCommand
impl Unpin for WriteCommand
impl UnsafeUnpin for WriteCommand
impl UnwindSafe for WriteCommand
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