Home
last modified time | relevance | path

Searched refs:variant_name (Results 1 – 12 of 12) sorted by relevance

/external/rust/crates/futures-macro/src/
Dselect.rs153 .map(|(expr, variant_name)| { in select_inner()
181 let mut #variant_name = #expr; in select_inner()
183 parse_quote! { #variant_name } in select_inner()
192 .map(|(bound_future_name, variant_name)| { in select_inner()
202 let mut #variant_name = |__cx: &mut __futures_crate::task::Context<'_>| { in select_inner()
212 ).map(#enum_ident::#variant_name)) in select_inner()
215 let #variant_name: &mut dyn FnMut( in select_inner()
217 ) -> __futures_crate::Option<__futures_crate::task::Poll<_>> = &mut #variant_name; in select_inner()
234 .map(|((pat, expr), variant_name)| { in select_inner()
236 #enum_ident::#variant_name(#pat) => { #expr }, in select_inner()
/external/dagger2/
Dtest_defs.bzl97 for (variant_name, extra_javacopts) in BUILD_VARIANTS.items():
111 variant_name,
127 variant_name = None,
129 if variant_name:
130 suffix = "_" + variant_name
131 tags = [variant_name]
134 jvm_flags = ["-Ddagger.mode=" + variant_name]
/external/rust/crates/serde_derive/src/
Dser.rs504 let variant_name = variant.attrs.name().serialize_name(); in serialize_externally_tagged_variant() localVariable
513 #variant_name, in serialize_externally_tagged_variant()
526 #variant_name, in serialize_externally_tagged_variant()
544 #variant_name, in serialize_externally_tagged_variant()
553 variant_name, in serialize_externally_tagged_variant()
561 variant_name, in serialize_externally_tagged_variant()
577 let variant_name = variant.attrs.name().serialize_name(); in serialize_internally_tagged_variant() localVariable
590 #variant_name, in serialize_internally_tagged_variant()
602 &mut __struct, #tag, #variant_name)); in serialize_internally_tagged_variant()
621 #variant_name, in serialize_internally_tagged_variant()
[all …]
Dde.rs1227 let variant_name = field_i(i); in deserialize_externally_tagged_enum() localVariable
1234 (__Field::#variant_name, __variant) => #block in deserialize_externally_tagged_enum()
1311 let variant_name = field_i(i); in deserialize_internally_tagged_enum() localVariable
1323 __Field::#variant_name => #block in deserialize_internally_tagged_enum()
1747 let variant_name = variant.ident.to_string(); in deserialize_internally_tagged_variant() localVariable
1753 …deserializer, _serde::__private::de::InternallyTaggedUnitVisitor::new(#type_name, #variant_name))); in deserialize_internally_tagged_variant()
1796 let variant_name = variant.ident.to_string(); in deserialize_untagged_variant() localVariable
1804 _serde::__private::de::UntaggedUnitVisitor::new(#type_name, #variant_name) in deserialize_untagged_variant()
/external/crosvm/sys_util/poll_token_derive/
Dpoll_token_derive.rs52 let variant_name = &variant.ident; in generate_as_raw_token() localVariable
73 #enum_name::#variant_name #capture => #index #modifier in generate_as_raw_token()
93 let variant_name = &variant.ident; in generate_from_raw_token() localVariable
106 #index => #enum_name::#variant_name #data in generate_from_raw_token()
/external/rust/crates/derive_arbitrary/src/
Dlib.rs94 let variant_name = &variant.ident; in gen_arbitrary_method() localVariable
95 quote! { #idx => #ident::#variant_name #ctor } in gen_arbitrary_method()
100 let variant_name = &variant.ident; in gen_arbitrary_method() localVariable
101 quote! { #idx => #ident::#variant_name #ctor } in gen_arbitrary_method()
/external/rust/crates/serde/src/private/
Dser.rs22 variant_name: &'static str, in serialize_tagged_newtype()
33 variant_name: variant_name, in serialize_tagged_newtype()
42 variant_name: &'static str, field
192 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_unit_struct()
203 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_unit_variant()
230 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_newtype_variant()
273 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_tuple_variant()
284 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_map()
294 try!(state.serialize_field(self.tag, self.variant_name)); in serialize_struct()
320 try!(map.serialize_entry(self.tag, self.variant_name)); in serialize_struct_variant()
Dde.rs2441 variant_name: &'a str, field
2446 pub fn new(type_name: &'a str, variant_name: &'a str) -> Self { in new()
2449 variant_name: variant_name, in new()
2461 self.type_name, self.variant_name in expecting()
2486 variant_name: &'a str, field
2491 pub fn new(type_name: &'a str, variant_name: &'a str) -> Self { in new()
2494 variant_name: variant_name, in new()
2506 self.type_name, self.variant_name in expecting()
/external/rust/crates/structopt-derive/src/
Dlib.rs593 let variant_name = &variant.ident; in gen_from_subcommand() localVariable
639 ext_subcmd = Some((span, variant_name, str_ty, values_of)); in gen_from_subcommand()
682 let variant_name = &variant.ident; in gen_from_subcommand() localVariable
698 Some(#name :: #variant_name #constructor_block) in gen_from_subcommand()
704 let variant_name = &variant.ident; in gen_from_subcommand() localVariable
712 return Some(#name :: #variant_name (res)); in gen_from_subcommand()
/external/rust/crates/bindgen/src/codegen/
Dmod.rs2632 let variant_name = ctx.rust_mangle(variant.name()); in with_variant() localVariable
2660 let name = ctx.rust_ident(variant_name); in with_variant()
2678 let variant_ident = ctx.rust_ident(variant_name); in with_variant()
2688 Cow::Owned(format!("{}_{}", prefix, variant_name)) in with_variant()
2690 None => variant_name, in with_variant()
2704 Cow::Owned(format!("{}_{}", prefix, variant_name)) in with_variant()
2706 None => variant_name, in with_variant()
2724 let name = ctx.rust_ident(variant_name); in with_variant()
2970 variant_name: &Ident, in codegen()
2977 format!("{}_{}", enum_canonical_name, variant_name) in codegen()
[all …]
/external/llvm-project/lldb/source/Breakpoint/
DBreakpointResolverName.cpp223 for (ConstString variant_name : lang->GetMethodNameVariants(name)) { in AddNameLookup() local
226 variant_lookup.SetLookupName(variant_name); in AddNameLookup()
/external/rust/crates/csv/src/
Ddeserializer.rs575 let variant_name = self.next_field()?; in variant_seed() localVariable
576 seed.deserialize(variant_name.into_deserializer()).map(|v| (v, self)) in variant_seed()