Trait structopt_flags::GetWithDefault [−][src]
pub trait GetWithDefault { type Item; fn get_with_default(&self, default: Self::Item) -> Self::Item; }
This trait is designed to provide a rude form of default value for options If an option doesn't have a default value, it will implement this trait
Associated Types
type Item
Required Methods
fn get_with_default(&self, default: Self::Item) -> Self::Item
This function can be used to retrieve the value of the command line option taking in account the default value used as argument
Implementors
impl GetWithDefault for HostV4Opt type Item = Ipv4Addr;
impl GetWithDefault for HostV6Opt type Item = Ipv6Addr;
impl GetWithDefault for HostOpt type Item = IpAddr;
impl GetWithDefault for LogLevelNoDef type Item = LevelFilter;
impl GetWithDefault for LogLevelNoDefLower type Item = LevelFilter;
impl GetWithDefault for VerboseNoDef type Item = LevelFilter;