pub fn value_of<T>(matches: &ArgMatches<'_>, name: &str) -> Option<T>
where
    T: std::str::FromStr,
    <T as std::str::FromStr>::Err: std::fmt::Debug,
{
    if let Some(value) = matches.value_of(name) {
        value.parse::<T>().ok()
    } else {
        None
    }
}
// Return a parsed value from matches at `name`
Return a parsed value from matches at `name`
Return a parsed value from matches at ` name `
pub fn value_of<T>(matches: &ArgMatches<'_>, name: &str) -> Option<T>
where
    T: std::str::FromStr,
    <T as std::str::FromStr>::Err: std::fmt::Debug,
{
    if let Some(value) = matches.value_of(name) {
        value.parse::<T>().ok()
    } else {
        None
    }
}
pub fn value_of < T > ( matches : & ArgMatches < ' _ > , name : & str ) -> Option < T > where T : std :: str :: FromStr , < T as std :: str :: FromStr > :: Err : std :: fmt :: Debug , { if let Some ( value ) = matches . value_of ( name ) { value . parse :: < T > ( ) . ok ( ) } else { None } }
Return a parsed value from matches at `name`
Return a parsed value from matches at ` name `
matches
&ArgMatches<'_>
name
&str
matches
&ArgMatches<'_>
name
&str