Searched refs:variant_ident (Results 1 – 9 of 9) sorted by relevance
/third_party/rust/crates/serde/serde_derive/src/ |
D | de.rs | 440 variant_ident: Option<&syn::Ident>, in deserialize_tuple() 463 let is_enum = variant_ident.is_some(); in deserialize_tuple() 464 let type_path = match variant_ident { in deserialize_tuple() 465 Some(variant_ident) => quote!(#construct::#variant_ident), in deserialize_tuple() 468 let expecting = match variant_ident { in deserialize_tuple() 469 Some(variant_ident) => format!("tuple variant {}::{}", params.type_name(), variant_ident), in deserialize_tuple() 541 variant_ident: Option<syn::Ident>, in deserialize_tuple_in_place() 554 let is_enum = variant_ident.is_some(); in deserialize_tuple_in_place() 555 let expecting = match variant_ident { in deserialize_tuple_in_place() 556 Some(variant_ident) => format!("tuple variant {}::{}", params.type_name(), variant_ident), in deserialize_tuple_in_place() [all …]
|
D | pretend.rs | 135 let variant_ident = &variant.ident; in pretend_fields_used_enum() localVariable 138 Some(quote!(#type_ident::#variant_ident { #(#members: #placeholders),* })) in pretend_fields_used_enum() 176 let variant_ident = &variant.ident; in pretend_variants_used() localVariable 193 let _ = #type_ident::#variant_ident #turbofish #pat; in pretend_variants_used()
|
D | ser.rs | 431 let variant_ident = &variant.ident; in serialize_variant() localVariable 437 variant_ident in serialize_variant() 448 #this::#variant_ident #fields_pat => #skipped_err, in serialize_variant() 455 #this::#variant_ident in serialize_variant() 460 #this::#variant_ident(ref __field0) in serialize_variant() 467 #this::#variant_ident(#(ref #field_names),*) in serialize_variant() 473 #this::#variant_ident { #(ref #members),* } in serialize_variant()
|
/third_party/rust/crates/syn/codegen/src/ |
D | fold.rs | 116 let variant_ident = Ident::new(variant, Span::call_site()); in node() localVariable 120 #ty::#variant_ident => { in node() 121 #ty::#variant_ident in node() 145 #ty::#variant_ident(#bind_fold_fields) => { in node() 146 #ty::#variant_ident( in node()
|
D | visit.rs | 131 let variant_ident = Ident::new(variant, Span::call_site()); in node() localVariable 135 #ty::#variant_ident => {} in node() 159 #ty::#variant_ident(#bind_visit_fields) => { in node()
|
D | visit_mut.rs | 131 let variant_ident = Ident::new(variant, Span::call_site()); in node() localVariable 135 #ty::#variant_ident => {} in node() 159 #ty::#variant_ident(#bind_visit_mut_fields) => { in node()
|
/third_party/rust/crates/serde/serde/src/private/ |
D | ser.rs | 20 variant_ident: &'static str, in serialize_tagged_newtype() 31 variant_ident: variant_ident, in serialize_tagged_newtype() 40 variant_ident: &'static str, field 91 self.type_ident, self.variant_ident, what in bad_type()
|
/third_party/rust/crates/cxx/macro/src/ |
D | expand.rs | 325 let variant_ident = &variant.name.rust; in expand_enum() localVariable 327 let span = variant_ident.span(); in expand_enum() 332 pub const #variant_ident: Self = #ident { repr: #discriminant }; in expand_enum()
|
/third_party/rust/crates/bindgen/bindgen/codegen/ |
D | mod.rs | 2858 let variant_ident = ctx.rust_ident(variant_name); in with_variant() localVariable 2863 pub const #variant_ident : #rust_ty = #rust_ty ( #expr ); in with_variant()
|