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

Method serialize_struct_variant

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

Source from the content-addressed store, hash-verified

461
462 #[inline(always)]
463 fn serialize_struct_variant(
464 self,
465 _name: &'static str,
466 variant_index: u32,
467 _variant: &'static str,
468 len: usize,
469 ) -> Result<Self::SerializeStructVariant> {
470 self.serialize_enum(variant_index)?.serialize_tuple(len)
471 }
472
473 #[inline(always)]
474 fn is_human_readable(&self) -> bool {

Callers

nothing calls this directly

Calls 2

serialize_tupleMethod · 0.80
serialize_enumMethod · 0.80

Tested by

no test coverage detected