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

Method serialize_key

atomic-core/examples/graph_codec_lab/codec.rs:283–285  ·  view source on GitHub ↗
(&mut self, key: &T)

Source from the content-addressed store, hash-verified

281 type Ok = ();
282 type Error = Error;
283 fn serialize_key<T: Serialize + ?Sized>(&mut self, key: &T) -> SResult<()> {
284 self.w.with("map_key", key)
285 }
286 fn serialize_value<T: Serialize + ?Sized>(&mut self, value: &T) -> SResult<()> {
287 self.w.with("map_value", value)
288 }

Callers

nothing calls this directly

Calls 1

withMethod · 0.80

Tested by

no test coverage detected