Function arg_combinators::opt_by_default [−][src]
pub fn opt_by_default<F, T, E>(
short: &str,
long: &str,
doc: &str,
hint: &str,
default: T,
f: F
) -> ArgExt<impl Arg<Item = T>> where
F: Fn(String) -> Result<T, E>,
E: Clone + Debug + Display,
T: Clone + Display,