// Serializers are encouraged to treat newtype structs as
// insignificant wrappers around the data they contain.
Serializers are encouraged to treat newtype structs as
insignificant wrappers around the data they contain.
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 ) }
Serializers are encouraged to treat newtype structs as
insignificant wrappers around the data they contain.
Serializers are encouraged to treat newtype structs as insignificant wrappers around the data they contain .
self
_name
&'static str
value
&T