Home
last modified time | relevance | path

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

/third_party/rust/crates/clap/clap_derive/src/utils/
Dty.rs31 } else if let Some(subty) = subty_if_name(ty, "Option") { in from_syn_ty()
32 if is_generic_ty(subty, "Option") { in from_syn_ty()
34 } else if let Some(vt) = get_vec_ty(subty, OptionVec, OptionVecVec) { in from_syn_ty()
153 subty_if_name(ty, "Vec").map(|subty| { in get_vec_ty()
154 if is_generic_ty(subty, "Vec") { in get_vec_ty()
/third_party/rust/crates/clap/clap_derive/src/derives/
Dsubcommand.rs153 let subty = subty_if_name(ty, "Vec").ok_or_else(|| { in gen_augment() localVariable
163 .external_subcommand_value_parser(clap::value_parser!(#subty)); in gen_augment()
449 Some(subty) => { in gen_from_arg_matches()
450 if is_simple_ty(subty, "String") { in gen_from_arg_matches()
451 (subty.span(), quote!(::std::string::String)) in gen_from_arg_matches()
452 } else if is_simple_ty(subty, "OsString") { in gen_from_arg_matches()
453 (subty.span(), quote!(::std::ffi::OsString)) in gen_from_arg_matches()