fn serialize_newtype_struct<T>(self, _name: &'static str, value: &T) -> Result<()>
    where
        T: ?Sized + Serialize,
    {
        value.serialize(self)
    }
// As is done here, serializers are encouraged to treat newtype structs as
// insignificant wrappers around the data they contain.
As is done here, serializers are encouraged to treat newtype structs as
insignificant wrappers around the data they contain.
As is done here serializers are encouraged to treat newtype structs as insignificant wrappers around the data they contain .
fn serialize_newtype_struct<T>(self, _name: &'static str, value: &T) -> Result<()>
    where
        T: ?Sized + Serialize,
    {
        value.serialize(self)
    }
fn serialize_newtype_struct < T > ( self , _name : & ' static str , value : & T ) -> Result < ( ) > where T : ? Sized + Serialize , { value . serialize ( self ) }
As is done here, serializers are encouraged to treat newtype structs as
insignificant wrappers around the data they contain.
As is done here serializers are encouraged to treat newtype structs as insignificant wrappers around the data they contain .
self
_name
&'static str
value
&T
self
_name
&'static str
value
&T