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

Method serialize_tuple_variant

src/ser.rs:436–449  ·  view source on GitHub ↗
(
        self,
        name: &'static str,
        _variant_index: u32,
        variant: &'static str,
        len: usize,
    )

Source from the content-addressed store, hash-verified

434 }
435
436 fn serialize_tuple_variant(
437 self,
438 name: &'static str,
439 _variant_index: u32,
440 variant: &'static str,
441 len: usize,
442 ) -> Result<PythonTupleVariantSerializer<'py, P>> {
443 let inner = self.serialize_tuple(len)?;
444 Ok(PythonTupleVariantSerializer {
445 name,
446 variant,
447 inner,
448 })
449 }
450
451 fn serialize_map(self, len: Option<usize>) -> Result<PythonMapSerializer<'py, P>> {
452 Ok(PythonMapSerializer {

Callers

nothing calls this directly

Calls 1

serialize_tupleMethod · 0.80

Tested by

no test coverage detected