// 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,
        _variant: &'static str,
        _value: &T,
    ) -> Result<()>
    where
        T: ?Sized + Serialize,
    {
        // self.output += "{";
        // variant.serialize(&mut *self)?;
        // self.output += ":";
        // value.serialize(&mut *self)?;
        // self.output += "}";
        // Ok(())
        Err(Error::Message(String::from(
            "newtype vartiant is not implemented/serializable",
        )))
    }
fn serialize_newtype_variant < T > ( self , _name : & ' static str , _variant_index : u32 , _variant : & ' static str , _value : & T , ) -> Result < ( ) > where T : ? Sized + Serialize , { // self.output += "{"; // variant.serialize(&mut *self)?; // self.output += ":"; // value.serialize(&mut *self)?; // self.output += "}"; // Ok(()) Err ( Error :: Message ( String :: from ( " " , ) ) ) }
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
u32
_variant
&'static str
_value
&T