Home
last modified time | relevance | path

Searched refs:variant_ident (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/serde_derive/src/
Dpretend.rs60 let variant_ident = &variant.ident; in pretend_fields_used() localVariable
62 Some(quote!(#type_ident::#variant_ident #pat)) in pretend_fields_used()
108 let variant_ident = &variant.ident; in pretend_variants_used() localVariable
125 let _ = #type_ident::#variant_ident #turbofish #pat; in pretend_variants_used()
Dde.rs435 variant_ident: Option<&syn::Ident>, in deserialize_tuple()
458 let is_enum = variant_ident.is_some(); in deserialize_tuple()
459 let type_path = match variant_ident { in deserialize_tuple()
460 Some(variant_ident) => quote!(#construct::#variant_ident), in deserialize_tuple()
463 let expecting = match variant_ident { in deserialize_tuple()
464 Some(variant_ident) => format!("tuple variant {}::{}", params.type_name(), variant_ident), in deserialize_tuple()
536 variant_ident: Option<syn::Ident>, in deserialize_tuple_in_place()
549 let is_enum = variant_ident.is_some(); in deserialize_tuple_in_place()
550 let expecting = match variant_ident { in deserialize_tuple_in_place()
551 Some(variant_ident) => format!("tuple variant {}::{}", params.type_name(), variant_ident), in deserialize_tuple_in_place()
[all …]
Dser.rs431 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()
/external/rust/crates/pin-project-internal/src/pin_project/
Dderive.rs545 variant_ident: Option<&Ident>, in visit_fields()
611 let proj_own_body = proj_own_body(cx, variant_ident, Some(proj_move), &pinned_bindings); in visit_fields()
628 variant_ident: Option<&Ident>, in proj_own_body()
633 let proj_own = match variant_ident { in proj_own_body()
634 Some(variant_ident) => quote!(#ident::#variant_ident), in proj_own_body()
/external/rust/crates/serde/src/private/
Dser.rs20 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()
/external/rust/cxx/macro/src/
Dexpand.rs296 let variant_ident = &variant.name.rust; in expand_enum() localVariable
298 let span = variant_ident.span(); in expand_enum()
302 pub const #variant_ident: Self = #ident { repr: #discriminant }; in expand_enum()
/external/rust/crates/bindgen/src/codegen/
Dmod.rs2678 let variant_ident = ctx.rust_ident(variant_name); in with_variant() localVariable
2682 pub const #variant_ident : #rust_ty = #rust_ty ( #expr ); in with_variant()