Home
last modified time | relevance | path

Searched refs:DataStruct (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/derive-getters/src/
Dextract.rs4 use syn::{FieldsNamed, DataStruct, DeriveInput, Data, Fields, Error, Result};
8 pub fn named_fields<'a>(structure: &'a DataStruct) -> Result<&'a FieldsNamed> { in named_fields()
17 pub fn named_struct<'a>(node: &'a DeriveInput) -> Result<&'a DataStruct> { in named_struct() argument
/external/rust/crates/clap_derive/src/derives/
Dparser.rs21 self, punctuated::Punctuated, token::Comma, Data, DataStruct, DeriveInput, Field, Fields,
35 Data::Struct(DataStruct { in derive_parser()
53 Data::Struct(DataStruct { in derive_parser()
Dargs.rs20 punctuated::Punctuated, spanned::Spanned, token::Comma, Data, DataStruct, DeriveInput, Field,
34 Data::Struct(DataStruct { in derive_args()
50 Data::Struct(DataStruct { in derive_args()
/external/rust/crates/zerocopy-derive/src/
Dext.rs5 use syn::{Data, DataEnum, DataStruct, DataUnion, Field, Fields, Type};
21 impl DataExt for DataStruct { implementation
Dlib.rs15 parse_quote, punctuated::Punctuated, token::Comma, Data, DataEnum, DataStruct, DataUnion,
93 fn derive_from_bytes_struct(ast: &DeriveInput, strct: &DataStruct) -> proc_macro2::TokenStream { in derive_from_bytes_struct()
177 fn derive_as_bytes_struct(ast: &DeriveInput, strct: &DataStruct) -> proc_macro2::TokenStream { in derive_as_bytes_struct()
262 fn derive_unaligned_struct(ast: &DeriveInput, strct: &DataStruct) -> proc_macro2::TokenStream { in derive_unaligned_struct()
/external/crosvm/base/tests/
Dtube.rs26 struct DataStruct { struct
82 let data = DataStruct { x: data }; in produce_messages()
104 let msg = tube.recv::<DataStruct>().unwrap(); in consume_messages()
/external/rust/crates/syn/src/
Dderive.rs40 Struct(DataStruct),
58 pub struct DataStruct {
115 data: Data::Struct(DataStruct { in parse()
Dlib.rs392 pub use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
Ditem.rs2 use crate::derive::{Data, DataEnum, DataStruct, DataUnion, DeriveInput};
427 data: Data::Struct(DataStruct { in from()
/external/rust/crates/thiserror-impl/src/
Dast.rs5 Data, DataEnum, DataStruct, DeriveInput, Error, Fields, Generics, Ident, Index, Member, Result,
59 fn from_syn(node: &'a DeriveInput, data: &'a DataStruct) -> Result<Self> { in from_syn()
/external/clang/test/SemaCXX/
Dtypo-correction.cpp325 struct DataStruct {void foo();}; struct
327 DataStruct data_struct;
/external/rust/crates/merge_derive/src/
Dlib.rs53 if let syn::Data::Struct(syn::DataStruct { ref fields, .. }) = ast.data { in impl_merge()
/external/rust/crates/serde_derive/src/internals/
Dattr.rs378 syn::Data::Struct(syn::DataStruct { fields, .. }) => match fields { in from_ast()
401 syn::Data::Struct(syn::DataStruct { fields, .. }) => { in from_ast()
449 syn::Data::Struct(syn::DataStruct { struct_token, .. }) => { in from_ast()
470 syn::Data::Struct(syn::DataStruct { fields, .. }) => match fields { in from_ast()
498 syn::Data::Struct(syn::DataStruct { struct_token, .. }) => { in from_ast()
813 (syn::Data::Struct(syn::DataStruct { struct_token, .. }), Some(_), None) => { in decide_identifier()
827 (syn::Data::Struct(syn::DataStruct { struct_token, .. }), None, Some(_)) => { in decide_identifier()
/external/rust/crates/syn/src/gen/
Dfold.rs92 fn fold_data_struct(&mut self, i: DataStruct) -> DataStruct { in fold_data_struct() argument
1040 pub fn fold_data_struct<F>(f: &mut F, node: DataStruct) -> DataStruct in fold_data_struct()
1044 DataStruct { in fold_data_struct()
Dclone.rs169 impl Clone for DataStruct { implementation
171 DataStruct { in clone()
Deq.rs191 impl Eq for DataStruct {} implementation
194 impl PartialEq for DataStruct { implementation
Dvisit_mut.rs95 fn visit_data_struct_mut(&mut self, i: &mut DataStruct) { in visit_data_struct_mut() argument
1060 pub fn visit_data_struct_mut<V>(v: &mut V, node: &mut DataStruct) in visit_data_struct_mut()
Dvisit.rs94 fn visit_data_struct(&mut self, i: &'ast DataStruct) { in visit_data_struct() argument
1059 pub fn visit_data_struct<'ast, V>(v: &mut V, node: &'ast DataStruct) in visit_data_struct()
Dhash.rs270 impl Hash for DataStruct { implementation
Ddebug.rs323 impl Debug for DataStruct { implementation
/external/rust/crates/argh_derive/src/
Dlib.rs241 ds: &syn::DataStruct, in impl_from_args_struct() argument
/external/rust/crates/syn/tests/debug/
Dgen.rs385 impl Debug for Lite<syn::DataStruct> {