MCPcopy Create free account
hub / github.com/GPPVM-Project/SkyLC / serialize

Method serialize

crates/skyl-data/src/bytecode.rs:46–54  ·  view source on GitHub ↗
(&self, serializer: S)

Source from the content-addressed store, hash-verified

44
45impl Serialize for VirtualFunction {
46 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
47 where
48 S: serde::Serializer,
49 {
50 let mut state = serializer.serialize_struct("VirtualFunction", 2)?;
51 state.serialize_field("id", &self.id)?;
52 state.serialize_field("chunk", &self.chunk.as_ref())?;
53 state.end()
54 }
55}
56
57impl VirtualFunction {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected