pub struct EditorOptions {
pub diff: Vec<String>,
pub add: Option<String>,
pub goto: Option<String>,
pub new_window: bool,
pub reuse_window: bool,
pub wait: bool,
pub locale: Option<String>,
pub enable_proposed_api: Vec<String>,
pub code_options: DesktopCodeOptions,
}
Fields§
§diff: Vec<String>
Compare two files with each other.
add: Option<String>
Add folder(s) to the last active window.
goto: Option<String>
Open a file at the path on the specified line and character position.
new_window: bool
Force to open a new window.
reuse_window: bool
Force to open a file or folder in an
wait: bool
Wait for the files to be closed before returning.
locale: Option<String>
The locale to use (e.g. en-US or zh-TW).
enable_proposed_api: Vec<String>
Enables proposed API features for extensions. Can receive one or more extension IDs to enable individually.
code_options: DesktopCodeOptions
Implementations§
Source§impl EditorOptions
impl EditorOptions
pub fn add_code_args(&self, target: &mut Vec<String>)
Trait Implementations§
Source§impl Args for EditorOptions
impl Args for EditorOptions
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl Clone for EditorOptions
impl Clone for EditorOptions
Source§fn clone(&self) -> EditorOptions
fn clone(&self) -> EditorOptions
Returns a copy 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 Debug for EditorOptions
impl Debug for EditorOptions
Source§impl Default for EditorOptions
impl Default for EditorOptions
Source§fn default() -> EditorOptions
fn default() -> EditorOptions
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for EditorOptions
impl FromArgMatches for EditorOptions
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Auto Trait Implementations§
impl Freeze for EditorOptions
impl RefUnwindSafe for EditorOptions
impl Send for EditorOptions
impl Sync for EditorOptions
impl Unpin for EditorOptions
impl UnwindSafe for EditorOptions
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