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

Method serialize_map

atomic-core/examples/graph_codec_lab/codec.rs:443–454  ·  view source on GitHub ↗
(self, len: Option<usize>)

Source from the content-addressed store, hash-verified

441 })
442 }
443 fn serialize_map(self, len: Option<usize>) -> SResult<Compound<'a>> {
444 self.small_number(
445 4,
446 len.ok_or_else(|| Error("unknown map length".into()))? as u64,
447 )?;
448 let parent = self.ctx;
449 Ok(Compound {
450 w: self,
451 parent,
452 pending: None,
453 })
454 }
455 fn serialize_struct(self, _: &'static str, len: usize) -> SResult<Compound<'a>> {
456 self.serialize_tuple(len)
457 }

Callers 1

serialize_remotes_compatFunction · 0.80

Calls 2

ErrorClass · 0.85
small_numberMethod · 0.80

Tested by

no test coverage detected