fn deserialize_newtype_struct<V>(
        self,
        name: &'static str,
        visitor: V,
    ) -> Result<V::Value, Self::Error>
    where
        V: Visitor<'de>,
    {
        self.calls.push(Tokens::NewTypeStruct(name));
        let mut struct_tokens = Vec::new();
        let retval = visitor.visit_newtype_struct(MockDeserializer {
            calls: &mut struct_tokens,
            magic: self.magic,
        });
        self.calls.extend(struct_tokens.into_iter());
        retval
    }
/// Hint that the `Deserialize` type is expecting a newtype struct with a
/// particular name.
Hint that the `Deserialize` type is expecting a newtype struct with a
particular name.
Hint that the ` Deserialize ` type is expecting a newtype struct with a particular name .
fn deserialize_newtype_struct<V>(
        self,
        name: &'static str,
        visitor: V,
    ) -> Result<V::Value, Self::Error>
    where
        V: Visitor<'de>,
    {
        self.calls.push(Tokens::NewTypeStruct(name));
        let mut struct_tokens = Vec::new();
        let retval = visitor.visit_newtype_struct(MockDeserializer {
            calls: &mut struct_tokens,
            magic: self.magic,
        });
        self.calls.extend(struct_tokens.into_iter());
        retval
    }
fn deserialize_newtype_struct < V > ( self , name : & ' static str , visitor : V , ) -> Result < V :: Value , Self :: Error > where V : Visitor < ' de > , { self . calls . push ( Tokens :: NewTypeStruct ( name ) ) ; let mut struct_tokens = Vec :: new ( ) ; let retval = visitor . visit_newtype_struct ( MockDeserializer { calls : & mut struct_tokens , magic : self . magic , } ) ; self . calls . extend ( struct_tokens . into_iter ( ) ) ; retval }
Hint that the `Deserialize` type is expecting a newtype struct with a
particular name.
Hint that the ` Deserialize ` type is expecting a newtype struct with a particular name .
self
name
&'static str
visitor
V
self
name
&'static str
visitor
V