Trait CommandLineConfigurationBuilderExtensions

Source
pub trait CommandLineConfigurationBuilderExtensions {
    // Required methods
    fn add_command_line(&mut self) -> &mut Self;
    fn add_command_line_map<S: AsRef<str>>(
        &mut self,
        switch_mappings: &[(S, S)],
    ) -> &mut Self;
}
Available on crate feature cmd only.
Expand description

Defines extension methods for ConfigurationBuilder.

Required Methods§

Source

fn add_command_line(&mut self) -> &mut Self

Adds the command line configuration source.

Source

fn add_command_line_map<S: AsRef<str>>( &mut self, switch_mappings: &[(S, S)], ) -> &mut Self

Adds the command line configuration source.

§Arguments
  • switch_mappings - The mapping of switches to configuration values

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§