Lines Matching defs:map
640 /// - [`TypedValueParser::map`] or [`TypedValueParser::try_map`] to adapt an existing `TypedValueParser`
737 /// .map(|b| -> usize {
757 fn map<T, F>(self, func: F) -> MapValueParser<Self, F>
802 /// matches.get_one::<PathBuf>("flag").map(|s| s.as_path()),
838 .map(|a| a.to_string())
972 arg.map(ToString::to_string)
1045 let ignore_case = arg.map(|a| a.is_ignore_case_set()).unwrap_or(false);
1051 .map(|v| v.get_name().to_owned())
1060 arg.map(ToString::to_string)
1076 arg.map(ToString::to_string)
1105 /// - [`TypedValueParser::map`] for adapting values to a more specialized type, like an external
1173 let ignore_case = arg.map(|a| a.is_ignore_case_set()).unwrap_or(false);
1181 .map(|v| v.get_name().to_owned())
1188 arg.map(ToString::to_string)
1207 Self(values.into_iter().map(|t| t.into()).collect())
1358 .map(|a| a.to_string())
1369 .map(|a| a.to_string())
1382 .map(|a| a.to_string())
1556 .map(|a| a.to_string())
1567 .map(|a| a.to_string())
1580 .map(|a| a.to_string())
1626 .map(crate::builder::PossibleValue::new)
1646 .map(|v| v.get_name().to_owned())
1653 arg.map(ToString::to_string)
1726 .map(|l| crate::builder::PossibleValue::new(l).hide(l != "true" && l != "false"))
1823 .map(|l| crate::builder::PossibleValue::new(l).hide(l != "true" && l != "false"))
1844 .map(|a| a.to_string())
1921 arg.map(ToString::to_string)
1943 /// See [`TypedValueParser::map`]
2041 .map(|a| a.to_string())
2247 .map(|s| FromOsString::from(s))
2265 .map(|s| FromOsStr::from(&s))
2280 _AnonymousValueParser(StringValueParser::new().map(|s| FromString::from(s)).into())
2293 _AnonymousValueParser(StringValueParser::new().map(|s| FromStr::from(&s)).into())