Home
last modified time | relevance | path

Searched refs:ValueEnum (Results 1 – 25 of 28) sorted by relevance

12

/third_party/rust/crates/clap/tests/derive/
Dvalue_enum.rs14 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in basic()
43 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in default_value()
83 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in vec_for_default_values_t()
97 default_values_t = clap::ValueEnum::value_variants() in vec_for_default_values_t()
134 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in vec_for_default_values_os_t()
148 default_values_os_t = clap::ValueEnum::value_variants() in vec_for_default_values_os_t()
185 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in multi_word_is_renamed_kebab()
215 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in variant_with_defined_casing()
238 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in casing_is_propagated_from_parent()
261 #[derive(clap::ValueEnum, PartialEq, Debug, Clone)] in casing_propagation_is_overridden()
[all …]
Dtype_alias_regressions.rs3 use clap::{Parser, Subcommand, ValueEnum};
25 #[derive(ValueEnum, PartialEq, Debug, Clone)]
Ddoc_comments_help.rs17 use clap::{CommandFactory, Parser, Subcommand, ValueEnum};
221 #[derive(ValueEnum, Clone, PartialEq, Debug)] in value_enum_multiline_doc_comment()
/third_party/rust/crates/clap/tests/derive_ui/
Dvalue_enum_on_struct.stderr1 error: `#[derive(ValueEnum)]` only supports enums
4 3 | #[derive(ValueEnum, Clone, Debug)]
7 …= note: this error originates in the derive macro `ValueEnum` (in Nightly builds, run with -Z macr…
Dbool_value_enum.stderr1 error[E0277]: the trait bound `bool: ValueEnum` is not satisfied
5 | ^^^^^^^^^^^^^^^ the trait `ValueEnum` is not implemented for `bool`
7 = help: the trait `ValueEnum` is implemented for `ColorChoice`
Dvalue_enum_on_struct.rs1 use clap::ValueEnum;
3 #[derive(ValueEnum, Clone, Debug)]
Dvalue_enum_non_unit.rs1 use clap::ValueEnum;
3 #[derive(ValueEnum, Clone, Debug)]
Dvalue_enum_non_unit.stderr1 error: `#[derive(ValueEnum)]` only supports unit variants. Non-unit variants must be skipped
/third_party/rust/crates/clap/examples/tutorial_derive/
D04_01_enum.rs1 use clap::{Parser, ValueEnum};
11 #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum)]
/third_party/rust/crates/clap/src/util/
Dcolor.rs2 use crate::derive::ValueEnum;
89 impl ValueEnum for ColorChoice {
/third_party/rust/crates/clap/examples/tutorial_builder/
D04_01_enum.rs1 use clap::{arg, builder::PossibleValue, command, value_parser, ValueEnum};
10 impl ValueEnum for Mode {
/third_party/rust/crates/clap/clap_complete/src/shells/
Dshell.rs6 use clap::ValueEnum;
50 impl ValueEnum for Shell {
/third_party/rust/crates/clap/examples/
Dgit-derive.rs5 use clap::{Args, Parser, Subcommand, ValueEnum};
61 #[derive(ValueEnum, Copy, Clone, Debug, PartialEq, Eq)]
Dtyped-derive.md15 …--log-level <LOG_LEVEL> Support enums from a foreign crate that don't implement `ValueEnum` [defa…
109 Enums from crates that can't implement `ValueEnum`
/third_party/rust/crates/clap/clap_derive/src/
Ditem.rs490 Some(MagicAttrName::ValueEnum) if attr.value.is_none() => { in push_attrs()
561 .any(|a| a.magic == Some(MagicAttrName::ValueEnum)) in push_attrs()
566 … clap::ValueEnum::to_possible_value(&val).unwrap().get_name().to_owned() in push_attrs()
617 .any(|a| a.magic == Some(MagicAttrName::ValueEnum)) in push_attrs()
628 … clap::ValueEnum::to_possible_value(val.borrow()).unwrap().get_name().to_owned() in push_attrs()
693 .any(|a| a.magic == Some(MagicAttrName::ValueEnum)) in push_attrs()
698 … clap::ValueEnum::to_possible_value(&val).unwrap().get_name().to_owned() in push_attrs()
749 .any(|a| a.magic == Some(MagicAttrName::ValueEnum)) in push_attrs()
760 … clap::ValueEnum::to_possible_value(val.borrow()).unwrap().get_name().to_owned().into() in push_attrs()
854 Some(MagicAttrName::ValueEnum) in push_attrs()
Dattr.rs95 "value_enum" => Some(MagicAttrName::ValueEnum), in parse()
152 ValueEnum, enumerator
Ddummies.rs81 impl clap::ValueEnum for #name { in value_enum()
Dlib.rs35 #[proc_macro_derive(ValueEnum, attributes(clap, value))]
/third_party/rust/crates/clap/src/
Dlib.rs115 pub use crate::derive::{Args, CommandFactory, FromArgMatches, Parser, Subcommand, ValueEnum};
Dderive.rs374 pub trait ValueEnum: Sized + Clone { trait
/third_party/rust/crates/clap/src/builder/
Dvalue_parser.rs1024 pub struct EnumValueParser<E: crate::ValueEnum + Clone + Send + Sync + 'static>(
1028 impl<E: crate::ValueEnum + Clone + Send + Sync + 'static> EnumValueParser<E> {
1036 impl<E: crate::ValueEnum + Clone + Send + Sync + 'static> TypedValueParser for EnumValueParser<E> {
1095 impl<E: crate::ValueEnum + Clone + Send + Sync + 'static> Default for EnumValueParser<E> {
2226 impl<E: crate::ValueEnum + Clone + Send + Sync + 'static> _ValueParserViaValueEnum
2384 impl<E: crate::ValueEnum> _ValueParserViaValueEnumSealed for &&&&&_AutoValueParser<E> {}
/third_party/rust/crates/clap/clap_derive/src/derives/
Dvalue_enum.rs67 impl clap::ValueEnum for #item_name { in gen_for_enum()
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/schema/
Dschema.go.tmpl85 OperandCategoryValueEnum = "ValueEnum"
/third_party/spirv-tools/utils/vscode/src/schema/
Dschema.go.tmpl85 OperandCategoryValueEnum = "ValueEnum"
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/schema/
Dschema.go.tmpl85 OperandCategoryValueEnum = "ValueEnum"

12