Home
last modified time | relevance | path

Searched refs:SerializeStruct (Results 1 – 13 of 13) sorted by relevance

/third_party/rust/crates/serde/serde_derive/src/
Dser.rs325 serialize_struct_visitor(fields, params, false, &StructTrait::SerializeStruct); in serialize_struct_as_struct()
329 let tag_field = serialize_struct_tag_field(cattrs, &StructTrait::SerializeStruct); in serialize_struct_as_struct()
356 _serde::ser::SerializeStruct::end(__serde_state) in serialize_struct_as_struct()
601 try!(_serde::ser::SerializeStruct::serialize_field( in serialize_internally_tagged_variant()
603 _serde::ser::SerializeStruct::end(__struct) in serialize_internally_tagged_variant()
658 try!(_serde::ser::SerializeStruct::serialize_field( in serialize_adjacently_tagged_variant()
660 _serde::ser::SerializeStruct::end(__struct) in serialize_adjacently_tagged_variant()
671 let func = quote_spanned!(span=> _serde::ser::SerializeStruct::serialize_field); in serialize_adjacently_tagged_variant()
675 try!(_serde::ser::SerializeStruct::serialize_field( in serialize_adjacently_tagged_variant()
679 _serde::ser::SerializeStruct::end(__struct) in serialize_adjacently_tagged_variant()
[all …]
/third_party/rust/crates/serde/serde/src/private/
Dser.rs3 use ser::{self, Impossible, Serialize, SerializeMap, SerializeStruct, Serializer};
107 type SerializeStruct = S::SerializeStruct; typedef
292 ) -> Result<Self::SerializeStruct, Self::Error> { in serialize_struct() argument
534 use ser::SerializeStruct; in serialize()
575 type SerializeStruct = SerializeStruct<E>; typedef
748 ) -> Result<Self::SerializeStruct, E> { in serialize_struct() argument
749 Ok(SerializeStruct { in serialize_struct()
937 pub struct SerializeStruct<E> { struct
943 impl<E> ser::SerializeStruct for SerializeStruct<E> implementation
1027 type SerializeStruct = FlatMapSerializeStruct<'a, M>; typedef
[all …]
Ddoc.rs152 type SerializeStruct = $crate::ser::Impossible<Self::Ok, Self::Error>;
153 __serialize_unimplemented_method!(serialize_struct(&str, usize) -> SerializeStruct);
/third_party/rust/crates/serde/serde/src/ser/
Dmod.rs379 type SerializeStruct: SerializeStruct<Ok = Self::Ok, Error = Self::Error>; typedef
1205 ) -> Result<Self::SerializeStruct, Self::Error>; in serialize_struct() argument
1885 pub trait SerializeStruct { interface
Dimpossible.rs6 self, Serialize, SerializeMap, SerializeSeq, SerializeStruct, SerializeStructVariant,
176 impl<Ok, Error> SerializeStruct for Impossible<Ok, Error>
Dfmt.rs45 type SerializeStruct = Impossible<(), fmt::Error>; typedef
154 ) -> Result<Self::SerializeStruct, fmt::Error> { in serialize_struct() argument
Dimpls.rs232 use super::SerializeStruct; in serialize()
251 use super::SerializeStruct; in serialize()
600 use super::SerializeStruct; in serialize()
616 use super::SerializeStruct; in serialize()
/third_party/rust/crates/tracing/tracing-serde/src/
Dlib.rs190 ser::{SerializeMap, SerializeSeq, SerializeStruct, SerializeTupleStruct, Serializer},
443 pub struct SerdeStructVisitor<S: SerializeStruct> {
450 S: SerializeStruct,
503 impl<S: SerializeStruct> SerdeStructVisitor<S> {
/third_party/rust/crates/serde/serde_test/src/
Dconfigure.rs4 SerializeMap, SerializeSeq, SerializeStruct, SerializeStructVariant, SerializeTuple,
193 type SerializeStruct = $wrapper<S::SerializeStruct>;
304 ) -> Result<Self::SerializeStruct, Self::Error> {
423 impl<S> SerializeStruct for $wrapper<S> impl
425 S: SerializeStruct,
Dser.rs87 type SerializeStruct = Self; typedef
418 impl<'s, 'a> ser::SerializeStruct for &'s mut Serializer<'a> {
/third_party/rust/crates/serde/test_suite/tests/expand/
Dnamed_map.expanded.rs36 match _serde::ser::SerializeStruct::serialize_field(&mut __serde_state, "a", &self.a) { in serialize()
42 match _serde::ser::SerializeStruct::serialize_field(&mut __serde_state, "b", &self.b) { in serialize()
48 match _serde::ser::SerializeStruct::serialize_field(&mut __serde_state, "c", &self.c) { in serialize()
54 _serde::ser::SerializeStruct::end(__serde_state) in serialize()
Ddefault_ty_param.expanded.rs35 match _serde::ser::SerializeStruct::serialize_field( in serialize()
45 _serde::ser::SerializeStruct::end(__serde_state) in serialize()
Dgeneric_struct.expanded.rs32 match _serde::ser::SerializeStruct::serialize_field(&mut __serde_state, "x", &self.x) { in serialize()
38 _serde::ser::SerializeStruct::end(__serde_state) in serialize()