Lines Matching refs:ArgChoice
15 enum ArgChoice { in basic() enum
23 arg: ArgChoice, in basic()
28 arg: ArgChoice::Foo in basic()
34 arg: ArgChoice::Bar in basic()
44 enum ArgChoice { in default_value() enum
49 impl Default for ArgChoice { in default_value() implementation
58 arg: ArgChoice, in default_value()
63 arg: ArgChoice::Foo in default_value()
69 arg: ArgChoice::Bar in default_value()
75 arg: ArgChoice::Bar in default_value()
84 enum ArgChoice { in vec_for_default_values_t() enum
91 #[arg(value_enum, default_values_t = vec![ArgChoice::Foo, ArgChoice::Bar])] in vec_for_default_values_t()
92 arg1: Vec<ArgChoice>, in vec_for_default_values_t()
99 arg2: Vec<ArgChoice>, in vec_for_default_values_t()
104 arg1: vec![ArgChoice::Foo], in vec_for_default_values_t()
105 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t()
111 arg1: vec![ArgChoice::Bar], in vec_for_default_values_t()
112 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t()
118 arg1: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_t()
119 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_t()
125 arg1: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_t()
126 arg2: vec![ArgChoice::Foo] in vec_for_default_values_t()
135 enum ArgChoice { in vec_for_default_values_os_t() enum
142 #[arg(value_enum, default_values_os_t = vec![ArgChoice::Foo, ArgChoice::Bar])] in vec_for_default_values_os_t()
143 arg: Vec<ArgChoice>, in vec_for_default_values_os_t()
150 arg2: Vec<ArgChoice>, in vec_for_default_values_os_t()
155 arg: vec![ArgChoice::Foo], in vec_for_default_values_os_t()
156 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_os_t()
162 arg: vec![ArgChoice::Bar], in vec_for_default_values_os_t()
163 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_os_t()
169 arg: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_os_t()
170 arg2: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_for_default_values_os_t()
176 arg: vec![ArgChoice::Foo, ArgChoice::Bar], in vec_for_default_values_os_t()
177 arg2: vec![ArgChoice::Foo] in vec_for_default_values_os_t()
187 enum ArgChoice { in multi_word_is_renamed_kebab() enum
195 arg: ArgChoice, in multi_word_is_renamed_kebab()
200 arg: ArgChoice::FooBar in multi_word_is_renamed_kebab()
206 arg: ArgChoice::BAR_BAZ in multi_word_is_renamed_kebab()
216 enum ArgChoice { in variant_with_defined_casing() enum
224 arg: ArgChoice, in variant_with_defined_casing()
229 arg: ArgChoice::FooBar in variant_with_defined_casing()
240 enum ArgChoice { in casing_is_propagated_from_parent() enum
247 arg: ArgChoice, in casing_is_propagated_from_parent()
252 arg: ArgChoice::FooBar in casing_is_propagated_from_parent()
263 enum ArgChoice { in casing_propagation_is_overridden() enum
271 arg: ArgChoice, in casing_propagation_is_overridden()
276 arg: ArgChoice::FooBar in casing_propagation_is_overridden()
287 enum ArgChoice { in ignore_case() enum
294 arg: ArgChoice, in ignore_case()
299 arg: ArgChoice::Foo in ignore_case()
305 arg: ArgChoice::Foo in ignore_case()
314 enum ArgChoice { in ignore_case_set_to_false() enum
321 arg: ArgChoice, in ignore_case_set_to_false()
326 arg: ArgChoice::Foo in ignore_case_set_to_false()
336 enum ArgChoice { in alias() enum
344 arg: ArgChoice, in alias()
349 arg: ArgChoice::Totp in alias()
355 arg: ArgChoice::Totp in alias()
364 enum ArgChoice { in multiple_alias() enum
372 arg: ArgChoice, in multiple_alias()
377 arg: ArgChoice::Totp in multiple_alias()
383 arg: ArgChoice::Totp in multiple_alias()
389 arg: ArgChoice::Totp in multiple_alias()
399 enum ArgChoice { in skip_variant() enum
407 <ArgChoice as clap::ValueEnum>::value_variants() in skip_variant()
420 assert!(ArgChoice::from_str("foo", true).is_ok()); in skip_variant()
421 assert!(ArgChoice::from_str("bar", true).is_ok()); in skip_variant()
422 assert!(ArgChoice::from_str("baz", true).is_err()); in skip_variant()
430 enum ArgChoice { in skip_non_unit_variant() enum
438 <ArgChoice as clap::ValueEnum>::value_variants() in skip_non_unit_variant()
451 assert!(ArgChoice::from_str("foo", true).is_ok()); in skip_non_unit_variant()
452 assert!(ArgChoice::from_str("bar", true).is_ok()); in skip_non_unit_variant()
453 assert!(ArgChoice::from_str("baz", true).is_err()); in skip_non_unit_variant()
460 enum ArgChoice { in from_str_invalid() enum
466 assert!(ArgChoice::from_str("bar", true).is_err()); in from_str_invalid()
473 enum ArgChoice { in option_type() enum
481 arg: Option<ArgChoice>, in option_type()
487 arg: Some(ArgChoice::Foo) in option_type()
493 arg: Some(ArgChoice::Bar) in option_type()
503 enum ArgChoice { in option_option_type() enum
511 arg: Option<Option<ArgChoice>>, in option_option_type()
521 arg: Some(Some(ArgChoice::Foo)) in option_option_type()
527 arg: Some(Some(ArgChoice::Bar)) in option_option_type()
537 enum ArgChoice { in vec_type() enum
545 arg: Vec<ArgChoice>, in vec_type()
551 arg: vec![ArgChoice::Foo] in vec_type()
557 arg: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_type()
567 enum ArgChoice { in option_vec_type() enum
575 arg: Option<Vec<ArgChoice>>, in option_vec_type()
581 arg: Some(vec![ArgChoice::Foo]) in option_vec_type()
587 arg: Some(vec![ArgChoice::Foo, ArgChoice::Bar]) in option_vec_type()
597 enum ArgChoice { in vec_type_default_value() enum
612 arg: Vec<ArgChoice>, in vec_type_default_value()
617 arg: vec![ArgChoice::Foo, ArgChoice::Bar] in vec_type_default_value()
624 arg: vec![ArgChoice::Foo, ArgChoice::Baz] in vec_type_default_value()