Searched refs:ValueParser (Results 1 – 11 of 11) sorted by relevance
/third_party/rust/crates/clap/src/builder/ |
D | resettable.rs | 9 use crate::builder::ValueParser; 105 impl IntoResettable<ValueParser> for Option<ValueParser> { 106 fn into_resettable(self) -> Resettable<ValueParser> { in into_resettable() argument 177 impl<I: Into<ValueParser>> IntoResettable<ValueParser> for I { 178 fn into_resettable(self) -> Resettable<ValueParser> { in into_resettable() argument
|
D | value_parser.rs | 59 pub struct ValueParser(ValueParserInner); struct 73 impl ValueParser { implementation 221 impl ValueParser { impl 282 impl<P> From<P> for ValueParser implementation 291 impl From<_AnonymousValueParser> for ValueParser { implementation 320 impl From<std::ops::Range<i64>> for ValueParser { implementation 350 impl From<std::ops::RangeInclusive<i64>> for ValueParser { implementation 380 impl From<std::ops::RangeFrom<i64>> for ValueParser { implementation 410 impl From<std::ops::RangeTo<i64>> for ValueParser { implementation 440 impl From<std::ops::RangeToInclusive<i64>> for ValueParser { implementation [all …]
|
D | action.rs | 316 pub(crate) fn default_value_parser(&self) -> Option<super::ValueParser> { in default_value_parser() argument 320 Self::SetTrue => Some(super::ValueParser::bool()), in default_value_parser() 321 Self::SetFalse => Some(super::ValueParser::bool()), in default_value_parser()
|
D | mod.rs | 53 pub use value_parser::ValueParser;
|
D | arg.rs | 59 pub(crate) value_parser: Option<super::ValueParser>, 943 pub fn value_parser(mut self, parser: impl IntoResettable<super::ValueParser>) -> Self { in value_parser() 3978 pub fn get_value_parser(&self) -> &super::ValueParser { in get_value_parser() argument 3982 static DEFAULT: super::ValueParser = super::ValueParser::string(); in get_value_parser() 4098 self.value_parser = Some(super::ValueParser::string()); in _build()
|
D | command.rs | 107 external_value_parser: Option<super::ValueParser>, 2808 parser: impl IntoResettable<super::ValueParser>, in external_subcommand_value_parser() argument 3699 pub fn get_external_subcommand_value_parser(&self) -> Option<&super::ValueParser> { in get_external_subcommand_value_parser() argument 3703 static DEFAULT: super::ValueParser = super::ValueParser::os_string(); in get_external_subcommand_value_parser()
|
/third_party/rust/crates/cxx/gen/cmd/src/ |
D | app.rs | 9 use clap::builder::{ArgAction, ValueParser}; 126 .value_parser(ValueParser::path_buf()) in arg_input() 167 .value_parser(ValueParser::string()) in arg_cxx_impl_annotations() 195 .value_parser(ValueParser::string()) in arg_include() 208 .value_parser(ValueParser::path_buf()) in arg_output()
|
/third_party/rust/crates/clap/clap_derive/src/ |
D | attr.rs | 98 "value_parser" => Some(MagicAttrName::ValueParser), in parse() 155 ValueParser, enumerator
|
D | item.rs | 43 value_parser: Option<ValueParser>, 321 self.value_parser = Some(ValueParser::Explicit(Method::new(name, quote!(#arg)))); in push_method() 455 Some(MagicAttrName::ValueParser) if attr.value.is_none() => { in push_attrs() 464 self.value_parser = Some(ValueParser::Implicit(attr.name.clone())); in push_attrs() 847 Some(MagicAttrName::ValueParser) | Some(MagicAttrName::Action) => { in push_attrs() 1068 enum ValueParser { enum 1073 impl ValueParser { implementation
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | arg_matches.rs | 1941 .value_parser(crate::builder::ValueParser::os_string()) in os_values_exact_size()
|
/third_party/rust/crates/clap/ |
D | CHANGELOG.md | 383 - Replacing various one-off forms of value validation with the `ValueParser` API 504 …lEq` and `Eq` from `Command` so we could change external subcommands to use a `ValueParser` (#3990) 744 `value_parser!(PathBuf)` which will auto-select the right `ValueParser` 777 - Default `ValueParser` is determined by `value_parser!` (#3199, #3496)
|