MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / serialize

Method serialize

cranelift/module/src/module.rs:515–528  ·  view source on GitHub ↗
(&self, s: S)

Source from the content-addressed store, hash-verified

513
514 impl Serialize for ModuleDeclarations {
515 fn serialize<S: Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
516 let ModuleDeclarations {
517 _version_marker,
518 functions,
519 data_objects,
520 names: _,
521 } = self;
522
523 let mut state = s.serialize_struct("ModuleDeclarations", 4)?;
524 state.serialize_field("_version_marker", _version_marker)?;
525 state.serialize_field("functions", functions)?;
526 state.serialize_field("data_objects", data_objects)?;
527 state.end()
528 }
529 }
530
531 enum ModuleDeclarationsField {

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected