pub trait ArgGetter<T> {
// Required method
fn get_arg(self, s: &str) -> Option<T>;
}
Expand description
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>