MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / serialize_unit_variant

Method serialize_unit_variant

src/serde/ser.rs:324–332  ·  view source on GitHub ↗
(
        self,
        _name: &'static str,
        variant_index: u32,
        _variant: &'static str,
    )

Source from the content-addressed store, hash-verified

322
323 #[inline(always)]
324 fn serialize_unit_variant(
325 self,
326 _name: &'static str,
327 variant_index: u32,
328 _variant: &'static str,
329 ) -> Result<Self::Ok> {
330 self.serialize_enum(variant_index)?;
331 Ok(())
332 }
333
334 #[inline(always)]
335 fn serialize_newtype_struct<T: ?Sized>(self, _name: &'static str, value: &T) -> Result<Self::Ok>

Callers 1

serializeMethod · 0.80

Calls 1

serialize_enumMethod · 0.80

Tested by

no test coverage detected