Trait argparse::argparser::ArgGetter
[−]
[src]
pub trait ArgGetter<T> { fn get_arg(self, s: &str) -> Option<T>; }
Represents something capable of turning a &str
in the value
type of your choice. Implement this to use with ArgParseResults::get_with
Note
An implementation is provided for all closures of type F: FnOnce(&str) -> Option<T>
Required Methods
fn get_arg(self, s: &str) -> Option<T>
This is the key function that converts from a string to the required value tpe