Home
last modified time | relevance | path

Searched defs:Opt (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/rust/crates/clap/tests/derive/
Dnaming.rs8 struct Opt { in test_standalone_long_generates_kebab_case() struct
10 FOO_OPTION: bool, in test_standalone_long_generates_kebab_case()
22 struct Opt { in test_custom_long_overwrites_default_name() struct
24 foo_option: bool, in test_custom_long_overwrites_default_name()
36 struct Opt { in test_standalone_long_uses_previous_defined_custom_name() struct
38 foo_option: bool, in test_standalone_long_uses_previous_defined_custom_name()
50 struct Opt { in test_standalone_long_ignores_afterwards_defined_custom_name() struct
52 foo_option: bool, in test_standalone_long_ignores_afterwards_defined_custom_name()
64 struct Opt { in test_standalone_long_uses_previous_defined_custom_id() struct
66 foo_option: bool, in test_standalone_long_uses_previous_defined_custom_id()
[all …]
Doptions.rs25 struct Opt { in required_option() struct
27 arg: i32, in required_option()
52 struct Opt { in option_with_default() struct
54 arg: i32, in option_with_default()
71 struct Opt { in option_with_raw_default() struct
73 arg: i32, in option_with_raw_default()
101 struct Opt { in option_from_str() struct
102 a: Option<A>, in option_from_str()
127 struct Opt { in vec_from_str() struct
128 a: Vec<A>, in vec_from_str()
[all …]
Dskip.rs14 struct Opt { in skip_1() struct
16 x: u32, in skip_1()
18 s: u32, in skip_1()
41 struct Opt { in skip_2() struct
43 x: u32, in skip_2()
45 ss: String, in skip_2()
47 sn: u8, in skip_2()
49 y: u32, in skip_2()
51 sz: u16, in skip_2()
53 t: u32, in skip_2()
[all …]
Dflags.rs25 struct Opt { in bool_type_is_flag() struct
27 alice: bool, in bool_type_is_flag()
58 struct Opt { in non_bool_type_flag() struct
60 alice: usize, in non_bool_type_flag()
62 bob: usize, in non_bool_type_flag()
86 struct Opt { in inferred_help() struct
89 help: bool, in inferred_help()
107 struct Opt { in inferred_version() struct
110 version: bool, in inferred_version()
130 struct Opt { in count() struct
[all …]
Ddefault_value.rs10 struct Opt { in default_value() struct
12 arg: i32, in default_value()
24 struct Opt { in default_value_t() struct
26 arg: i32, in default_value_t()
38 struct Opt { in auto_default_value_t() struct
40 arg: i32, in auto_default_value_t()
52 struct Opt { in default_values_t() struct
54 arg1: Vec<i32>, in default_values_t()
57 arg2: Vec<i32>, in default_values_t()
60 arg3: Vec<i32>, in default_values_t()
[all …]
Dvalue_enum.rs21 struct Opt { in basic() struct
23 arg: ArgChoice, in basic()
56 struct Opt { in default_value() struct
58 arg: ArgChoice, in default_value()
90 struct Opt { in vec_for_default_values_t() struct
92 arg1: Vec<ArgChoice>, in vec_for_default_values_t()
99 arg2: Vec<ArgChoice>, in vec_for_default_values_t()
141 struct Opt { in vec_for_default_values_os_t() struct
143 arg: Vec<ArgChoice>, in vec_for_default_values_os_t()
150 arg2: Vec<ArgChoice>, in vec_for_default_values_os_t()
[all …]
Darguments.rs22 struct Opt { in required_argument() struct
23 arg: i32, in required_argument()
36 struct Opt { in argument_with_default() struct
38 arg: i32, in argument_with_default()
51 struct Opt { in auto_value_name() struct
52 my_special_arg: i32, in auto_value_name()
68 struct Opt { in explicit_value_name() struct
70 my_special_arg: i32, in explicit_value_name()
87 struct Opt { in option_type_is_optional() struct
88 arg: Option<i32>, in option_type_is_optional()
[all …]
Doccurrences.rs7 struct Opt { in test_vec_of_vec() struct
9 points: Vec<Vec<i32>>, in test_vec_of_vec()
27 struct Opt { in test_vec_of_vec_opt_out() struct
29 arg: Vec<::std::vec::Vec<String>>, in test_vec_of_vec_opt_out()
43 struct Opt { in test_vec_vec_empty() struct
45 points: Vec<Vec<i32>>, in test_vec_vec_empty()
57 struct Opt { in test_option_vec_vec() struct
59 points: Option<Vec<Vec<i32>>>, in test_option_vec_vec()
73 struct Opt { in test_option_vec_vec_empty() struct
75 points: Option<Vec<Vec<i32>>>, in test_option_vec_vec_empty()
Dbasic.rs20 struct Opt { in basic() struct
22 arg: i32, in basic()
33 struct Opt { in update_basic() struct
35 first: i32, in update_basic()
37 second: i32, in update_basic()
56 struct Opt { in update_explicit_required() struct
58 first: i32, in update_explicit_required()
60 second: i32, in update_explicit_required()
79 struct Opt; in unit_struct() struct
Dgroups.rs8 struct Opt { in test_safely_nest_parser() struct
10 foo: Foo, in test_safely_nest_parser()
30 struct Opt { in implicit_struct_group() struct
32 add: bool, in implicit_struct_group()
35 source: Source, in implicit_struct_group()
66 struct Opt { in skip_group_avoids_duplicate_ids() struct
68 first: Compose<Empty, Empty>, in skip_group_avoids_duplicate_ids()
70 second: Compose<Empty, Empty>, in skip_group_avoids_duplicate_ids()
102 struct Opt { in helpful_panic_on_duplicate_groups() struct
104 first: Compose<Empty, Empty>, in helpful_panic_on_duplicate_groups()
[all …]
Dflatten.rs27 struct Opt { in flatten() struct
29 common: Common, in flatten()
51 struct Opt { in flatten_twice() struct
53 c1: Common, in flatten_twice()
56 c2: Common, in flatten_twice()
77 enum Opt { in flatten_in_subcommand() enum
112 struct Opt { in update_args_with_flatten() struct
114 common: Common, in update_args_with_flatten()
148 enum Opt { enum
200 struct Opt { in flatten_with_doc_comment() struct
[all …]
Dsubcommands.rs20 enum Opt { enum
170 struct Opt { in global_passed_down() struct
172 other: bool, in global_passed_down()
174 sub: Subcommands, in global_passed_down()
209 struct Opt { in external_subcommand() struct
211 sub: Subcommands, in external_subcommand()
251 struct Opt { in external_subcommand_os_string() struct
253 sub: Subcommands, in external_subcommand_os_string()
275 struct Opt { in external_subcommand_optional() struct
277 sub: Option<Subcommands>, in external_subcommand_optional()
[all …]
Dexplicit_name_no_renaming.rs8 struct Opt { in explicit_short_long_no_rename() struct
10 foo: String, in explicit_short_long_no_rename()
29 struct Opt { in explicit_name_no_rename() struct
31 foo: String, in explicit_name_no_rename()
Dissues.rs11 struct Opt { in issue_151_groups_within_subcommands() struct
13 foo: Option<String>, in issue_151_groups_within_subcommands()
15 bar: Option<String>, in issue_151_groups_within_subcommands()
64 struct Opt { in issue_324() struct
66 _cmd: SubCommand, in issue_324()
124 struct Opt { in issue_490() struct
125 opt_vec: Vec<u16>, in issue_490()
127 opt_opt_vec: Option<Vec<u16>>, in issue_490()
Dgeneric.rs94 struct Opt<T> in generic_w_fromstr_trait_bound() struct
99 answer: T, in generic_w_fromstr_trait_bound()
113 struct Opt<T> { in generic_wo_trait_bound() struct
114 answer: isize, in generic_wo_trait_bound()
116 took: Option<T>, in generic_wo_trait_bound()
133 struct Opt<T> in generic_where_clause_w_trailing_comma() struct
138 pub answer: T, in generic_where_clause_w_trailing_comma()
Dnon_literal_attributes.rs24 struct Opt { struct
47 Opt { in test_slice() argument
Draw_bool_literal.rs15 struct Opt { in raw_bool_literal() struct
17 a: String, in raw_bool_literal()
19 b: String, in raw_bool_literal()
Ddeny_warnings.rs26 struct Opt { in warning_never_struct() struct
28 s: String, in warning_never_struct()
41 enum Opt { in warning_never_enum() enum
Dauthor_version_about.rs24 struct Opt {} in no_author_version_about() struct
35 struct Opt {} in use_env() struct
50 pub struct Opt {} in explicit_version_not_str_lit() struct
Draw_idents.rs6 struct Opt { in raw_idents() struct
8 r#type: String, in raw_idents()
/third_party/rust/crates/cxx/gen/cmd/src/
Dmain.rs49 struct Opt { struct
50 input: Option<PathBuf>, argument
52 cxx_impl_annotations: Option<String>, argument
53 include: Vec<Include>,
54 outputs: Vec<Output>,
55 cfg: Map<String, Set<CfgValue>>,
/third_party/rust/crates/cxx/gen/src/
Dmod.rs46 pub struct Opt { struct
51 /// Optional annotation for implementations of C++ function wrappers that argument
56 pub cxx_impl_annotations: Option<String>, argument
66 fn eval(&self, name: &str, value: Option<&str>) -> CfgResult; in eval() argument
84 impl Default for Opt { argument
/third_party/rust/crates/clap/tests/derive_ui/
Dskip_with_other_options.rs5 pub struct Opt { struct
13 let opt = Opt::parse(); in main() argument
Dskip_without_default.rs19 pub struct Opt { struct
27 let opt = Opt::parse(); in main() argument
Dexternal_subcommand_misuse.rs4 struct Opt { struct
10 let _ = Opt::parse(); in main() argument

1234