/// For compatibility with serde-json, serialises unit variants as "Variant" strings.
For compatibility with serde-json, serialises unit variants as "Variant" strings.
For compatibility with serde - json serialises unit variants as " Variant " strings .
fn serialize_unit_variant(
    self,
    _name: &'static str,
    _variant_index: u32,
    _variant: &'static str,
  ) -> JsResult<'a> {
    unreachable!();
  }
fn serialize_unit_variant ( self , _name : & ' static str , _variant_index : u32 , _variant : & ' static str , ) -> JsResult < ' a > { unreachable ! ( ) ; }
For compatibility with serde-json, serialises unit variants as "Variant" strings.
For compatibility with serde - json serialises unit variants as " Variant " strings .
self
_name
&'static str
_variant_index
u32
_variant
&'static str