/external/rust/crates/serde_cbor/tests/ |
D | enum.rs | 11 enum DataEnum { in test_simple_data_enum_roundtrip() enum 16 let a = DataEnum::A(42); in test_simple_data_enum_roundtrip() 25 let deserialized: DataEnum = in test_simple_data_enum_roundtrip() 87 enum DataEnum { enum 95 let data_enum_a = DataEnum::A(4); in test_data_enum() 96 let re_a: DataEnum = from_slice(&to_vec(&data_enum_a).unwrap()).unwrap(); in test_data_enum() 98 let data_enum_b = DataEnum::B(true, 42); in test_data_enum() 99 let re_b: DataEnum = from_slice(&to_vec(&data_enum_b).unwrap()).unwrap(); in test_data_enum() 101 let data_enum_c = DataEnum::C { in test_data_enum() 106 let re_c: DataEnum = from_slice(&to_vec(&data_enum_c).unwrap()).unwrap(); in test_data_enum() [all …]
|
/external/rust/crates/syn/src/ |
D | derive.rs | 43 Enum(DataEnum), 71 pub struct DataEnum { 134 data: Data::Enum(DataEnum { in parse()
|
D | lib.rs | 400 pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
|
D | item.rs | 2 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput}; 448 data: Data::Enum(DataEnum { in from()
|
/external/rust/crates/thiserror-impl/src/ |
D | ast.rs | 4 Data, DataEnum, DataStruct, DeriveInput, Error, Fields, Generics, Ident, Index, Member, Result, 75 fn from_syn(node: &'a DeriveInput, data: &'a DataEnum) -> Result<Self> { in from_syn()
|
/external/crosvm/bit_field/bit_field_derive/ |
D | bit_field_derive.rs | 13 parse_macro_input, Attribute, Data, DataEnum, DeriveInput, Fields, FieldsNamed, FieldsUnnamed, 136 fn bitfield_enum_impl(ast: &DeriveInput, data: &DataEnum) -> Result<TokenStream> { in bitfield_enum_impl() 147 data: &DataEnum, in bitfield_enum_with_width_impl() argument 218 fn bitfield_enum_without_width_impl(ast: &DeriveInput, data: &DataEnum) -> Result<TokenStream> { in bitfield_enum_without_width_impl() 273 data: &DataEnum, in get_declare_discriminants_for_enum() argument
|
/external/rust/crates/pin-project-internal/src/pin_project/ |
D | derive.rs | 4 parse_quote, token, visit_mut::VisitMut, Attribute, Data, DataEnum, DeriveInput, Error, Field, 407 DataEnum { brace_token, variants, .. }: &DataEnum,
|
/external/rust/crates/serde_derive/src/internals/ |
D | attr.rs | 387 syn::Data::Enum(syn::DataEnum { enum_token, .. }) => cx.error_spanned_by( in from_ast() 413 syn::Data::Enum(syn::DataEnum { enum_token, .. }) => cx in from_ast()
|
/external/rust/crates/syn/src/gen/ |
D | fold.rs | 88 fn fold_data_enum(&mut self, i: DataEnum) -> DataEnum { in fold_data_enum() argument 982 pub fn fold_data_enum<F>(f: &mut F, node: DataEnum) -> DataEnum in fold_data_enum() 986 DataEnum { in fold_data_enum()
|
D | clone.rs | 158 impl Clone for DataEnum { implementation 160 DataEnum { in clone()
|
D | eq.rs | 188 impl Eq for DataEnum {} implementation 191 impl PartialEq for DataEnum { implementation
|
D | visit_mut.rs | 91 fn visit_data_enum_mut(&mut self, i: &mut DataEnum) { in visit_data_enum_mut() argument 1041 pub fn visit_data_enum_mut<V>(v: &mut V, node: &mut DataEnum) in visit_data_enum_mut()
|
D | visit.rs | 87 fn visit_data_enum(&mut self, i: &'ast DataEnum) { in visit_data_enum() argument 1037 pub fn visit_data_enum<'ast, V>(v: &mut V, node: &'ast DataEnum) in visit_data_enum()
|
D | hash.rs | 260 impl Hash for DataEnum { implementation
|
D | debug.rs | 312 impl Debug for DataEnum { implementation
|
/external/rust/crates/syn/tests/debug/ |
D | gen.rs | 375 impl Debug for Lite<syn::DataEnum> {
|