Trait ClapConfig

Source
pub trait ClapConfig {
    // Required methods
    fn configure<'c>(
        app: &mut AppBuilder,
        context: Context<'c>,
        help: Option<&'static str>,
    );
    fn populate<'a, 'c>(
        builder: &mut ConfigurationProviderBuilder,
        matches: &ArgMatches<'a>,
        context: Context<'c>,
    );
}

Required Methods§

Source

fn configure<'c>( app: &mut AppBuilder, context: Context<'c>, help: Option<&'static str>, )

Source

fn populate<'a, 'c>( builder: &mut ConfigurationProviderBuilder, matches: &ArgMatches<'a>, context: Context<'c>, )

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.

Implementations on Foreign Types§

Source§

impl ClapConfig for usize

Source§

fn configure<'c>( app: &mut AppBuilder, context: Context<'c>, help: Option<&'static str>, )

Source§

fn populate<'a, 'c>( builder: &mut ConfigurationProviderBuilder, matches: &ArgMatches<'a>, context: Context<'c>, )

Source§

impl ClapConfig for String

Source§

fn configure<'c>( app: &mut AppBuilder, context: Context<'c>, help: Option<&'static str>, )

Source§

fn populate<'a, 'c>( builder: &mut ConfigurationProviderBuilder, matches: &ArgMatches<'a>, context: Context<'c>, )

Source§

impl<T: ClapConfig> ClapConfig for Option<T>

Source§

fn configure<'c>( app: &mut AppBuilder, context: Context<'c>, help: Option<&'static str>, )

Source§

fn populate<'a, 'c>( builder: &mut ConfigurationProviderBuilder, matches: &ArgMatches<'a>, context: Context<'c>, )

Implementors§