Lines Matching refs:field_expr
238 let mut field_expr = get_member( in serialize_newtype_struct() localVariable
247 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_newtype_struct()
253 #func(__serializer, #type_name, #field_expr) in serialize_newtype_struct()
283 let field_expr = get_member(params, field, &Member::Unnamed(index)); in serialize_tuple_struct() localVariable
284 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_tuple_struct()
343 let field_expr = get_member(params, field, &field.member); in serialize_struct_as_struct() localVariable
344 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_struct_as_struct()
385 let field_expr = get_member(params, field, &field.member); in serialize_struct_as_map() localVariable
386 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_struct_as_map()
532 let mut field_expr = quote!(__field0); in serialize_externally_tagged_variant() localVariable
534 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_externally_tagged_variant()
545 #field_expr, in serialize_externally_tagged_variant()
608 let mut field_expr = quote!(__field0); in serialize_internally_tagged_variant() localVariable
610 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_internally_tagged_variant()
622 #field_expr, in serialize_internally_tagged_variant()
665 let mut field_expr = quote!(__field0); in serialize_adjacently_tagged_variant() localVariable
667 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_adjacently_tagged_variant()
678 &mut __struct, #content, #field_expr)); in serialize_adjacently_tagged_variant()
770 let mut field_expr = quote!(__field0); in serialize_untagged_variant() localVariable
772 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_untagged_variant()
778 #func(#field_expr, __serializer) in serialize_untagged_variant()
822 let field_expr = Ident::new(&format!("__field{}", i), Span::call_site()); in serialize_tuple_variant() localVariable
823 quote!(if #path(#field_expr) { 0 } else { 1 }) in serialize_tuple_variant()
1050 let mut field_expr = if is_enum { in serialize_tuple_struct_visitor() localVariable
1067 .map(|path| quote!(#path(#field_expr))); in serialize_tuple_struct_visitor()
1070 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_tuple_struct_visitor()
1076 try!(#func(&mut __serde_state, #field_expr)); in serialize_tuple_struct_visitor()
1099 let mut field_expr = if is_enum { in serialize_struct_visitor() localVariable
1110 .map(|path| quote!(#path(#field_expr))); in serialize_struct_visitor()
1113 field_expr = wrap_serialize_field_with(params, field.ty, path, &field_expr); in serialize_struct_visitor()
1120 … try!(#func(&#field_expr, _serde::__private::ser::FlatMapSerializer(&mut __serde_state))); in serialize_struct_visitor()
1125 try!(#func(&mut __serde_state, #key_expr, #field_expr)); in serialize_struct_visitor()
1157 field_expr: &TokenStream, in wrap_serialize_field_with()
1159 wrap_serialize_with(params, serialize_with, &[field_ty], &[quote!(#field_expr)]) in wrap_serialize_field_with()