Skip to main content

match_choice

Function match_choice 

Source
fn match_choice<T: MatchArg>(input: &str) -> Result<T, MatchArgError>
Expand description

Match a string against the choices of a MatchArg type: a choice typed exactly, then an alias typed exactly (MatchArg::ALIASES), then a unique prefix of a choice.