pub fn serialize_document(
doc: &ModDefDocument,
format: DocumentFormat,
) -> Result<Vec<u8>, ParseError>Expand description
Serialize a document. The binary form is deterministic (BTreeMap-backed
maps), so it byte-matches Go-produced .moddef files.