pub trait CommandLineConfigurationBuilderExtensions {
    // Required methods
    fn add_command_line(&mut self) -> &mut Self;
    fn add_command_line_map<I, S>(
        &mut self,
        switch_mappings: &[(S, S)]
    ) -> &mut Self
       where I: Iterator<Item = S>,
             S: AsRef<str>;
}
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<I, S>( &mut self, switch_mappings: &[(S, S)] ) -> &mut Self
where I: Iterator<Item = S>, S: AsRef<str>,

Adds the command line configuration source.

Arguments
  • switch_mappings - The mapping of switches to configuration values

Object Safety§

This trait is not object safe.

Implementors§