Home
last modified time | relevance | path

Searched refs:StructOptInternal (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/structopt/src/
Dlib.rs1139 pub trait StructOptInternal: StructOpt { trait
1166 impl<T: StructOptInternal> StructOptInternal for Box<T> {
1169 <T as StructOptInternal>::is_subcommand() in is_subcommand()
1174 <T as StructOptInternal>::from_subcommand(sub).map(Box::new) in from_subcommand()
1179 <T as StructOptInternal>::augment_clap(app) in augment_clap()
/external/rust/crates/structopt-derive/src/
Dlib.rs94 let #app_var = <#subcmd_type as ::structopt::StructOptInternal>::augment_clap( in gen_augmentation()
130 let #app_var = <#ty as ::structopt::StructOptInternal>::augment_clap(#app_var); in gen_augmentation()
131 let #app_var = if <#ty as ::structopt::StructOptInternal>::is_subcommand() { in gen_augmentation()
280 #field_name: <#subcmd_type as ::structopt::StructOptInternal>::from_subcommand( in gen_constructor()
428 <Self as ::structopt::StructOptInternal>::augment_clap(app) in gen_clap_struct()
458 <Self as ::structopt::StructOptInternal>::augment_clap(app) in gen_clap_enum()
500 let app = <#ty as ::structopt::StructOptInternal>::augment_clap(app); in gen_augment_clap_enum()
519 … let #app_var = <#ty as ::structopt::StructOptInternal>::augment_clap( in gen_augment_clap_enum()
522 if <#ty as ::structopt::StructOptInternal>::is_subcommand() { in gen_augment_clap_enum()
565 <#name as ::structopt::StructOptInternal>::from_subcommand(matches.subcommand()) in gen_from_clap_enum()
[all …]