MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / serialize_unit_variant

Method serialize_unit_variant

src/ser.rs:369–376  ·  view source on GitHub ↗
(
        self,
        _name: &'static str,
        _variant_index: u32,
        variant: &'static str,
    )

Source from the content-addressed store, hash-verified

367 }
368
369 fn serialize_unit_variant(
370 self,
371 _name: &'static str,
372 _variant_index: u32,
373 variant: &'static str,
374 ) -> Result<Bound<'py, PyAny>> {
375 self.serialize_str(variant)
376 }
377
378 fn serialize_newtype_struct<T>(
379 self,

Callers

nothing calls this directly

Calls 1

serialize_strMethod · 0.80

Tested by

no test coverage detected