de.rs
Structured object names a sequence field
SHA-256e93684e6d8193cc1a806ac043817a393d2e8f30e6ff30a3648e3c64e7713d1c7
MaleculeH(Db)
Evidence
1:9… ight 2017 Serde Developers
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> o …
5:28… pensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9use lib::*;
10
11use de::{Deserialize, DeserializeSeed, Deserializer, Error, IntoDeserializer, Visitor};
12
13#[cfg(any(feature = "std", feature = "alloc"))]
14use de::{MapAccess, Unexpected};
15
16#[cfg(any(feature = "std", feature = "alloc"))]
17pub use self::content::{
18 Content, ContentDeserializer, ContentRefDeserializer, EnumDeserializer,
19 InternallyTaggedUnitVisitor, TagContentOtherField, TagContentOtherFieldVisitor,
20 TagOrContentField, TagOrContentFieldVisitor, TaggedContentVisitor, UntaggedUnitVisitor,
21};
22
23/// If the missing field is of type `Option<T>` then treat is as `None`,
24/// otherwise it is an error.
25pu …
30:59… omData<E>);
31
32 impl<'de, E> Deserializer<'de> for MissingFieldDeserializer<E>
33 where
34 E: Error,
⋯4 lines
228:31… e-rs/serde/issues/741
229
230 use lib::*;
231
232 use super::size_hint;
233 use de::{
234 self, Deserialize, DeserializeSeed, Deserializer, EnumAccess, Expected, MapAccess,
235 SeqAccess, Unexpected, Visitor,
236 };
237
238 /// Used from generated code to buffer the contents of the Deseri …
868:34… ally tagged enum")
869 }
870
871 fn visit_seq<S>(self, mut seq: S) -> Result<Self::Value, S::Error>
872 where
873 S: SeqAccess<'de>,
874 {
875 let tag = match try!(seq …