Searched refs:p_vals (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/clap/src/ |
D | suggestions.rs | 118 let p_vals = ["test", "possible", "values"]; in possible_values_match() localVariable 119 assert_eq!(did_you_mean("tst", p_vals.iter()), Some("test")); in possible_values_match() 124 let p_vals = ["test", "possible", "values"]; in possible_values_nomatch() localVariable 125 assert!(did_you_mean("hahaahahah", p_vals.iter()).is_none()); in possible_values_nomatch() 130 let p_vals = ["test", "possible", "values"]; in suffix_long() localVariable 133 did_you_mean_flag_suffix("tst", p_vals.iter(), []), in suffix_long() 140 let p_vals = ["test", "possible", "values"]; in suffix_enum() localVariable 143 did_you_mean_value_suffix("tst", p_vals.iter()), in suffix_enum()
|
/external/rust/crates/clap/src/app/ |
D | validator.rs | 107 if let Some(p_vals) = arg.possible_vals() { in validate_arg_values() 108 debugln!("Validator::validate_arg_values: possible_vals={:?}", p_vals); in validate_arg_values() 111 p_vals.iter().any(|pv| pv.eq_ignore_ascii_case(&*val_str)) in validate_arg_values() 113 p_vals.contains(&&*val_str) in validate_arg_values() 118 p_vals, in validate_arg_values()
|