pub struct SetCommand;Expand description
Set command - modify editor options.
Supports vim-style syntax:
:set option- Set boolean true (or show value for non-bool):set nooption- Set boolean false:set option!- Toggle boolean:set option?- Query current value:set option=value- Set value:set option&- Reset to default:set all- List all options:set- List changed options
Trait Implementations§
Source§impl Clone for SetCommand
impl Clone for SetCommand
Source§fn clone(&self) -> SetCommand
fn clone(&self) -> SetCommand
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 SetCommand
impl Command for SetCommand
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 SetCommand
impl CommandHandler for SetCommand
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 SetCommand
impl Debug for SetCommand
impl Copy for SetCommand
Auto Trait Implementations§
impl Freeze for SetCommand
impl RefUnwindSafe for SetCommand
impl Send for SetCommand
impl Sync for SetCommand
impl Unpin for SetCommand
impl UnsafeUnpin for SetCommand
impl UnwindSafe for SetCommand
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