/third_party/rust/crates/serde/test_suite/tests/expand/ |
D | de_enum.expanded.rs | 14 extern crate serde as _serde; 16 impl<B, C, D> _serde::Serialize for DeEnum<B, C, D> 18 B: _serde::Serialize, 19 C: _serde::Serialize, 20 D: _serde::Serialize, 25 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 27 __S: _serde::Serializer, in serialize() 31 _serde::Serializer::serialize_unit_variant(__serializer, "DeEnum", 0u32, "Unit") in serialize() 34 let mut __serde_state = match _serde::Serializer::serialize_tuple_variant( in serialize() 41 _serde::__private::Ok(__val) => __val, in serialize() [all …]
|
D | named_map.expanded.rs | 11 extern crate serde as _serde; 13 impl<'a, 'b, A: 'a, B: 'b, C> _serde::Serialize for SerNamedMap<'a, 'b, A, B, C> 15 A: _serde::Serialize, 16 B: _serde::Serialize, 17 C: _serde::Serialize, 22 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 24 __S: _serde::Serializer, in serialize() 26 let mut __serde_state = match _serde::Serializer::serialize_struct( in serialize() 31 _serde::__private::Ok(__val) => __val, in serialize() 32 _serde::__private::Err(__err) => { in serialize() [all …]
|
D | generic_enum.expanded.rs | 12 extern crate serde as _serde; 14 impl<T, U> _serde::Serialize for GenericEnum<T, U> 16 T: _serde::Serialize, 17 U: _serde::Serialize, 22 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 24 __S: _serde::Serializer, in serialize() 27 GenericEnum::Unit => _serde::Serializer::serialize_unit_variant( in serialize() 34 _serde::Serializer::serialize_newtype_variant( in serialize() 43 let mut __serde_state = match _serde::Serializer::serialize_tuple_variant( in serialize() 50 _serde::__private::Ok(__val) => __val, in serialize() [all …]
|
D | generic_struct.expanded.rs | 9 extern crate serde as _serde; 11 impl<T> _serde::Serialize for GenericStruct<T> 13 T: _serde::Serialize, 18 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 20 __S: _serde::Serializer, in serialize() 22 let mut __serde_state = match _serde::Serializer::serialize_struct( in serialize() 27 _serde::__private::Ok(__val) => __val, in serialize() 28 _serde::__private::Err(__err) => { in serialize() 29 return _serde::__private::Err(__err); in serialize() 32 match _serde::ser::SerializeStruct::serialize_field(&mut __serde_state, "x", &self.x) { in serialize() [all …]
|
D | lifetimes.expanded.rs | 12 extern crate serde as _serde; 14 impl<'a> _serde::Serialize for Lifetimes<'a> { 18 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 20 __S: _serde::Serializer, in serialize() 24 _serde::Serializer::serialize_newtype_variant( in serialize() 33 _serde::Serializer::serialize_newtype_variant( in serialize() 42 let mut __serde_state = match _serde::Serializer::serialize_struct_variant( in serialize() 49 _serde::__private::Ok(__val) => __val, in serialize() 50 _serde::__private::Err(__err) => { in serialize() 51 return _serde::__private::Err(__err); in serialize() [all …]
|
D | default_ty_param.expanded.rs | 15 extern crate serde as _serde; 17 impl<T: AssociatedType<X = i32>> _serde::Serialize for DefaultTyParam<T> { 21 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 23 __S: _serde::Serializer, in serialize() 25 let mut __serde_state = match _serde::Serializer::serialize_struct( in serialize() 30 _serde::__private::Ok(__val) => __val, in serialize() 31 _serde::__private::Err(__err) => { in serialize() 32 return _serde::__private::Err(__err); in serialize() 35 match _serde::ser::SerializeStruct::serialize_field( in serialize() 40 _serde::__private::Ok(__val) => __val, in serialize() [all …]
|
D | named_tuple.expanded.rs | 7 extern crate serde as _serde; 9 impl<'a, 'b, A: 'a, B: 'b, C> _serde::Serialize for SerNamedTuple<'a, 'b, A, B, C> 11 A: _serde::Serialize, 12 B: _serde::Serialize, 13 C: _serde::Serialize, 18 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 20 __S: _serde::Serializer, in serialize() 22 let mut __serde_state = match _serde::Serializer::serialize_tuple_struct( in serialize() 27 _serde::__private::Ok(__val) => __val, in serialize() 28 _serde::__private::Err(__err) => { in serialize() [all …]
|
D | ser_enum.expanded.rs | 17 extern crate serde as _serde; 19 impl<'a, B: 'a, C: 'a, D> _serde::Serialize for SerEnum<'a, B, C, D> 22 B: _serde::Serialize, 23 C: _serde::Serialize, 24 D: _serde::Serialize, 29 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 31 __S: _serde::Serializer, in serialize() 34 SerEnum::Unit => _serde::Serializer::serialize_unit_variant( in serialize() 41 let mut __serde_state = match _serde::Serializer::serialize_tuple_variant( in serialize() 48 _serde::__private::Ok(__val) => __val, in serialize() [all …]
|
D | generic_tuple_struct.expanded.rs | 7 extern crate serde as _serde; 9 impl<'de, T, U> _serde::Deserialize<'de> for GenericTupleStruct<T, U> 11 T: _serde::Deserialize<'de>, 12 U: _serde::Deserialize<'de>, 14 fn deserialize<__D>(__deserializer: __D) -> _serde::__private::Result<Self, __D::Error> in deserialize() 16 __D: _serde::Deserializer<'de>, in deserialize() 20 T: _serde::Deserialize<'de>, in deserialize() 21 U: _serde::Deserialize<'de>, in deserialize() 23 marker: _serde::__private::PhantomData<GenericTupleStruct<T, U>>, in deserialize() 24 lifetime: _serde::__private::PhantomData<&'de ()>, in deserialize() [all …]
|
D | void.expanded.rs | 7 extern crate serde as _serde; 9 impl _serde::Serialize for Void { 13 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 15 __S: _serde::Serializer, in serialize() 25 extern crate serde as _serde; 27 impl<'de> _serde::Deserialize<'de> for Void { 28 fn deserialize<__D>(__deserializer: __D) -> _serde::__private::Result<Self, __D::Error> in deserialize() 30 __D: _serde::Deserializer<'de>, in deserialize() 35 impl<'de> _serde::de::Visitor<'de> for __FieldVisitor { in deserialize() 39 __formatter: &mut _serde::__private::Formatter, in deserialize() [all …]
|
D | named_unit.expanded.rs | 7 extern crate serde as _serde; 9 impl _serde::Serialize for NamedUnit { 13 ) -> _serde::__private::Result<__S::Ok, __S::Error> in serialize() 15 __S: _serde::Serializer, in serialize() 17 _serde::Serializer::serialize_unit_struct(__serializer, "NamedUnit") in serialize() 25 extern crate serde as _serde; 27 impl<'de> _serde::Deserialize<'de> for NamedUnit { 28 fn deserialize<__D>(__deserializer: __D) -> _serde::__private::Result<Self, __D::Error> in deserialize() 30 __D: _serde::Deserializer<'de>, in deserialize() 33 impl<'de> _serde::de::Visitor<'de> for __Visitor { in deserialize() [all …]
|
/third_party/rust/crates/quote/benches/ |
D | lib.rs | 27 impl<'de> _serde::Deserialize<'de> for #ident { impl 28 fn deserialize<__D>(__deserializer: __D) -> _serde::export::Result<Self, __D::Error> 30 __D: _serde::Deserializer<'de>, 39 impl<'de> _serde::de::Visitor<'de> for __FieldVisitor { 43 __formatter: &mut _serde::export::Formatter, 44 ) -> _serde::export::fmt::Result { 45 _serde::export::Formatter::write_str(__formatter, "field identifier") 47 … fn visit_u64<__E>(self, __value: u64) -> _serde::export::Result<Self::Value, __E> 49 __E: _serde::de::Error, 52 0u64 => _serde::export::Ok(__Field::__field0), [all …]
|
/third_party/rust/crates/serde/serde_derive/src/ |
D | de.rs | 180 &parse_quote!(_serde::__private::Default), in build_generics() 190 &parse_quote!(_serde::Deserialize<#delife>), in build_generics() 197 &parse_quote!(_serde::__private::Default), in build_generics() 339 …fn deserialize_in_place<__D>(__deserializer: __D, __place: &mut Self) -> _serde::__private::Result… in deserialize_in_place_body() 341 __D: _serde::Deserializer<#delife>, in deserialize_in_place_body() 368 quote_spanned!(span=> _serde::Deserialize::deserialize) in deserialize_transparent() 378 attr::Default::Default => quote!(_serde::__private::Default::default()), in deserialize_transparent() 380 attr::Default::None => quote!(_serde::__private::PhantomData), in deserialize_transparent() 387 _serde::__private::Result::map( in deserialize_transparent() 395 _serde::__private::Result::map( in deserialize_from() [all …]
|
D | ser.rs | 150 &parse_quote!(_serde::Serialize), in build_generics() 205 quote_spanned!(span=> _serde::Serialize::serialize) in serialize_transparent() 217 _serde::Serialize::serialize( in serialize_into() 218 … &_serde::__private::Into::<#type_into>::into(_serde::__private::Clone::clone(#self_var)), in serialize_into() 227 _serde::Serializer::serialize_unit_struct(__serializer, #type_name) in serialize_unit_struct() 251 let func = quote_spanned!(span=> _serde::Serializer::serialize_newtype_struct); in serialize_newtype_struct() 290 …let #let_mut __serde_state = try!(_serde::Serializer::serialize_tuple_struct(__serializer, #type_n… in serialize_tuple_struct() 292 _serde::ser::SerializeTupleStruct::end(__serde_state) in serialize_tuple_struct() 353 …let #let_mut __serde_state = try!(_serde::Serializer::serialize_struct(__serializer, #type_name, #… in serialize_struct_as_struct() 356 _serde::ser::SerializeStruct::end(__serde_state) in serialize_struct_as_struct() [all …]
|
D | pretend.rs | 87 match _serde::__private::None::<&#type_ident #ty_generics> { in pretend_fields_used_struct() 88 _serde::__private::Some(#type_ident { #(#members: #placeholders),* }) => {} in pretend_fields_used_struct() 103 match _serde::__private::None::<&#type_ident #ty_generics> { in pretend_fields_used_struct_packed() 104 _serde::__private::Some(__v @ #type_ident { #(#members: _),* }) => { in pretend_fields_used_struct_packed() 106 let _ = _serde::__private::ptr::addr_of!(__v.#members); in pretend_fields_used_struct_packed() 119 match _serde::__private::None::<#type_ident #ty_generics> { in pretend_fields_used_struct_packed() 120 _serde::__private::Some(#type_ident { #(#members: #placeholders),* }) => {} in pretend_fields_used_struct_packed() 145 match _serde::__private::None::<&#type_ident #ty_generics> { in pretend_fields_used_enum() 147 _serde::__private::Some(#patterns) => {} in pretend_fields_used_enum() 191 match _serde::__private::None { in pretend_variants_used() [all …]
|
D | try.rs | 16 _serde::__private::Ok(__val) => __val, in replacement() 17 _serde::__private::Err(__err) => { in replacement() 18 return _serde::__private::Err(__err); in replacement()
|
D | dummy.rs | 23 use #path as _serde; in wrap_in_const() 27 extern crate serde as _serde; in wrap_in_const()
|
/third_party/rust/crates/serde/serde_derive/src/internals/ |
D | attr.rs | 696 .map_or_else(|| Cow::Owned(parse_quote!(_serde)), Cow::Borrowed) in serde_path()
|