Skip to main content

ArgMatchesExt

Trait ArgMatchesExt 

Source
pub trait ArgMatchesExt {
Show 19 methods // Required methods fn _value_of(&self, name: &str) -> Option<&str>; fn _values_of(&self, name: &str) -> Vec<String>; fn _value_of_os(&self, name: &str) -> Option<&OsStr>; fn _values_of_os(&self, name: &str) -> Vec<OsString>; fn _is_present(&self, name: &str) -> bool; // Provided methods fn value_of_u32(&self, name: &str) -> CargoResult<Option<u32>> { ... } fn value_of_path(&self, name: &str, config: &Config) -> Option<PathBuf> { ... } fn root_manifest(&self, config: &Config) -> CargoResult<PathBuf> { ... } fn workspace<'a>(&self, config: &'a Config) -> CargoResult<Workspace<'a>> { ... } fn jobs(&self) -> CargoResult<Option<u32>> { ... } fn target(&self) -> Option<String> { ... } fn get_profile_name( &self, config: &Config, default: &str, profile_checking: ProfileChecking, ) -> CargoResult<InternedString> { ... } fn compile_options( &self, config: &Config, mode: CompileMode, workspace: Option<&Workspace<'_>>, profile_checking: ProfileChecking, ) -> CargoResult<CompileOptions> { ... } fn compile_options_for_single_package( &self, config: &Config, mode: CompileMode, workspace: Option<&Workspace<'_>>, profile_checking: ProfileChecking, ) -> CargoResult<CompileOptions> { ... } fn new_options(&self, config: &Config) -> CargoResult<NewOptions> { ... } fn registry(&self, config: &Config) -> CargoResult<Option<String>> { ... } fn index(&self, config: &Config) -> CargoResult<Option<String>> { ... } fn check_optional_opts( &self, workspace: &Workspace<'_>, compile_opts: &CompileOptions, ) -> CargoResult<()> { ... } fn is_present_with_zero_values(&self, name: &str) -> bool { ... }
}

Required Methods§

Source

fn _value_of(&self, name: &str) -> Option<&str>

Source

fn _values_of(&self, name: &str) -> Vec<String>

Source

fn _value_of_os(&self, name: &str) -> Option<&OsStr>

Source

fn _values_of_os(&self, name: &str) -> Vec<OsString>

Source

fn _is_present(&self, name: &str) -> bool

Provided Methods§

Source

fn value_of_u32(&self, name: &str) -> CargoResult<Option<u32>>

Source

fn value_of_path(&self, name: &str, config: &Config) -> Option<PathBuf>

Returns value of the name command-line argument as an absolute path

Source

fn root_manifest(&self, config: &Config) -> CargoResult<PathBuf>

Source

fn workspace<'a>(&self, config: &'a Config) -> CargoResult<Workspace<'a>>

Source

fn jobs(&self) -> CargoResult<Option<u32>>

Source

fn target(&self) -> Option<String>

Source

fn get_profile_name( &self, config: &Config, default: &str, profile_checking: ProfileChecking, ) -> CargoResult<InternedString>

Source

fn compile_options( &self, config: &Config, mode: CompileMode, workspace: Option<&Workspace<'_>>, profile_checking: ProfileChecking, ) -> CargoResult<CompileOptions>

Source

fn compile_options_for_single_package( &self, config: &Config, mode: CompileMode, workspace: Option<&Workspace<'_>>, profile_checking: ProfileChecking, ) -> CargoResult<CompileOptions>

Source

fn new_options(&self, config: &Config) -> CargoResult<NewOptions>

Source

fn registry(&self, config: &Config) -> CargoResult<Option<String>>

Source

fn index(&self, config: &Config) -> CargoResult<Option<String>>

Source

fn check_optional_opts( &self, workspace: &Workspace<'_>, compile_opts: &CompileOptions, ) -> CargoResult<()>

Source

fn is_present_with_zero_values(&self, name: &str) -> bool

Implementors§