Home
last modified time | relevance | path

Searched refs:ValueParser (Results 1 – 11 of 11) sorted by relevance

/third_party/rust/crates/clap/src/builder/
Dresettable.rs9 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
Dvalue_parser.rs59 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 …]
Daction.rs316 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()
Dmod.rs53 pub use value_parser::ValueParser;
Darg.rs59 pub(crate) value_parser: Option<super::ValueParser>,
943 pub fn value_parser(mut self, parser: impl IntoResettable<super::ValueParser>) -> Self { in value_parser()
3979 pub fn get_value_parser(&self) -> &super::ValueParser { in get_value_parser() argument
3983 static DEFAULT: super::ValueParser = super::ValueParser::string(); in get_value_parser()
4099 self.value_parser = Some(super::ValueParser::string()); in _build()
Dcommand.rs107 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/
Dapp.rs9 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/
Dattr.rs91 "value_parser" => Some(MagicAttrName::ValueParser), in parse()
148 ValueParser, enumerator
Ditem.rs42 value_parser: Option<ValueParser>,
320 self.value_parser = Some(ValueParser::Explicit(Method::new(name, quote!(#arg)))); in push_method()
456 Some(MagicAttrName::ValueParser) if attr.value.is_none() => { in push_attrs()
465 self.value_parser = Some(ValueParser::Implicit(attr.name.clone())); in push_attrs()
848 Some(MagicAttrName::ValueParser) | Some(MagicAttrName::Action) => { in push_attrs()
1072 enum ValueParser { enum
1077 impl ValueParser { implementation
/third_party/rust/crates/clap/src/parser/matches/
Darg_matches.rs1948 .value_parser(crate::builder::ValueParser::os_string()) in os_values_exact_size()
/third_party/rust/crates/clap/
DCHANGELOG.md442 - Replacing various one-off forms of value validation with the `ValueParser` API
563 …lEq` and `Eq` from `Command` so we could change external subcommands to use a `ValueParser` (#3990)
803 `value_parser!(PathBuf)` which will auto-select the right `ValueParser`
836 - Default `ValueParser` is determined by `value_parser!` (#3199, #3496)