Home
last modified time | relevance | path

Searched refs:DataEnum (Results 1 – 16 of 16) sorted by relevance

/external/rust/crates/serde_cbor/tests/
Denum.rs11 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/
Dderive.rs43 Enum(DataEnum),
71 pub struct DataEnum {
134 data: Data::Enum(DataEnum { in parse()
Dlib.rs400 pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
Ditem.rs2 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
448 data: Data::Enum(DataEnum { in from()
/external/rust/crates/thiserror-impl/src/
Dast.rs4 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/
Dbit_field_derive.rs13 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/
Dderive.rs4 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/
Dattr.rs387 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/
Dfold.rs88 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()
Dclone.rs158 impl Clone for DataEnum { implementation
160 DataEnum { in clone()
Deq.rs188 impl Eq for DataEnum {} implementation
191 impl PartialEq for DataEnum { implementation
Dvisit_mut.rs91 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()
Dvisit.rs87 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()
Dhash.rs260 impl Hash for DataEnum { implementation
Ddebug.rs312 impl Debug for DataEnum { implementation
/external/rust/crates/syn/tests/debug/
Dgen.rs375 impl Debug for Lite<syn::DataEnum> {