MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / serialize_tuple_variant

Method serialize_tuple_variant

atomic-core/examples/graph_codec_lab/codec.rs:428–442  ·  view source on GitHub ↗
(
        self,
        _: &'static str,
        index: u32,
        variant: &'static str,
        _: usize,
    )

Source from the content-addressed store, hash-verified

426 self.serialize_tuple(len)
427 }
428 fn serialize_tuple_variant(
429 self,
430 _: &'static str,
431 index: u32,
432 variant: &'static str,
433 _: usize,
434 ) -> SResult<Compound<'a>> {
435 self.small_number(3, index.into())?;
436 let parent = self.enter(variant);
437 Ok(Compound {
438 w: self,
439 parent,
440 pending: None,
441 })
442 }
443 fn serialize_map(self, len: Option<usize>) -> SResult<Compound<'a>> {
444 self.small_number(
445 4,

Callers 1

Calls 2

small_numberMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected