Lines Matching refs:values

7 /// Parse/validate argument values
62 // Common enough to optimize and for possible values
74 /// Custom parser for argument values
78 /// - [`EnumValueParser`] and [`PossibleValuesParser`] for static enumerated values
114 /// [`bool`] parser for argument values
141 /// [`String`] parser for argument values
165 /// [`OsString`][std::ffi::OsString] parser for argument values
195 /// [`PathBuf`][std::path::PathBuf] parser for argument values
505 fn from(values: [P; C]) -> Self {
506 let inner = PossibleValuesParser::from(values);
540 fn from(values: Vec<P>) -> Self {
541 let inner = PossibleValuesParser::from(values);
636 /// Parse/validate argument values
1068 .expect("ValueEnum::value_variants contains only values with a corresponding ValueEnum::to_possible_value")
1105 /// - [`TypedValueParser::map`] for adapting values to a more specialized type, like an external
1143 pub fn new(values: impl Into<PossibleValuesParser>) -> Self {
1144 values.into()
1206 fn from(values: I) -> Self {
1207 Self(values.into_iter().map(|t| t.into()).collect())
1211 /// Parse number that fall within a range of values
1213 /// **NOTE:** To capture negative values, you will also need to set
1413 /// Parse number that fall within a range of values
1673 /// Parse false-like string values, everything else is `true`
1716 /// Parse false-like string values, everything else is `true`
1766 /// Parse bool-like string values, everything else is `true`
1813 /// Parse bool-like string values, everything else is `true`
1865 /// Parse non-empty string values
1902 /// Parse non-empty string values