fn serialize_newtype_variant<T>(
        self,
        _name: &'static str,
        _variant_index: u32,
        _: &'static str,
        value: &T,
    ) -> Result<()>
    where
        T: ?Sized + Serialize,
    {
        value.serialize(self)
    }
// Note that newtype variant (and all of the other variant serialization
// methods) refer exclusively to the "externally tagged" enum
// representation.
//
// Serialize this to JSON in externally tagged form as `{ NAME: VALUE }`.
Note that newtype variant (and all of the other variant serialization
methods) refer exclusively to the "externally tagged" enum
representation.

Serialize this to JSON in externally tagged form as `{ NAME: VALUE }`.
Note that newtype variant ( and all of the other variant serialization methods ) refer exclusively to the " externally tagged " enum representation . Serialize this to JSON in externally tagged form as ` { NAME : VALUE } ` .
fn serialize_newtype_variant<T>(
        self,
        _name: &'static str,
        _variant_index: u32,
        _: &'static str,
        value: &T,
    ) -> Result<()>
    where
        T: ?Sized + Serialize,
    {
        value.serialize(self)
    }
fn serialize_newtype_variant < T > ( self , _name : & ' static str , _variant_index : u32 , _ : & ' static str , value : & T , ) -> Result < ( ) > where T : ? Sized + Serialize , { value . serialize ( self ) }
Note that newtype variant (and all of the other variant serialization
methods) refer exclusively to the "externally tagged" enum
representation.
Note that newtype variant ( and all of the other variant serialization methods ) refer exclusively to the " externally tagged " enum representation .
self
_name
&'static str
_variant_index
&'static str
value
&T