Home
last modified time | relevance | path

Searched refs:from_arg_matches (Results 1 - 9 of 9) sorted by relevance

/third_party/rust/crates/clap/clap_derive/src/
H A Ddummies.rs30 pub fn from_arg_matches(name: &Ident) -> proc_macro2::TokenStream { in from_arg_matches() functions
33 fn from_arg_matches(_m: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { in from_arg_matches() functions
45 let from_arg_matches = from_arg_matches(name); in subcommand()
58 #from_arg_matches in subcommand()
64 let from_arg_matches = from_arg_matches(name); in args()
74 #from_arg_matches in args()
/third_party/rust/crates/clap/examples/derive_ref/
H A Dhand_subcommand.rs22 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() functions
24 Some(("add", args)) => Ok(Self::Add(AddArgs::from_arg_matches(args)?)), in from_arg_matches()
25 Some(("remove", args)) => Ok(Self::Remove(RemoveArgs::from_arg_matches(args)?)), in from_arg_matches()
38 Some(("add", args)) => *self = Self::Add(AddArgs::from_arg_matches(args)?), in update_from_arg_matches()
39 Some(("remove", args)) => *self = Self::Remove(RemoveArgs::from_arg_matches(args)?), in update_from_arg_matches()
H A Daugment_subcommands.rs17 let derived_subcommands = Subcommands::from_arg_matches(&matches) in main()
H A Daugment_args.rs23 let derived_matches = DerivedArgs::from_arg_matches(&matches) in main()
H A Dflatten_hand_args.rs12 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() functions
/third_party/rust/crates/clap/src/
H A Dderive.rs191 /// `from_arg_matches` serves as the equivalent of:
209 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error>; in from_arg_matches() functions
244 Self::from_arg_matches(matches) in from_arg_matches_mut()
433 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in command() functions
434 <T as FromArgMatches>::from_arg_matches(matches).map(Box::new) in command()
/third_party/rust/crates/clap/clap_complete/examples/
H A Ddynamic.rs26 clap_complete::dynamic::bash::CompleteCommand::from_arg_matches(&matches) in main()
/third_party/rust/crates/clap/clap_derive/src/derives/
H A Dsubcommand.rs60 let from_arg_matches = gen_from_arg_matches(variants)?; in gen_for_enum()
82 fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { in gen_for_enum() functions
86 #from_arg_matches in gen_for_enum()
H A Dargs.rs111 fn from_arg_matches(__clap_arg_matches: &clap::ArgMatches) -> ::std::result::Result<Self, clap::Error> { in gen_for_struct() functions

Completed in 5 milliseconds