pub fn write_document(
document: &Document,
options: WriteOptions,
) -> OgeomResult<String>Expand description
Write a document: the model, then the product structure, appearance, names and PMI over it.
The model section is exactly what write() emits, so a model-only reader
stops cleanly at the document records; writing what read_document
read reproduces the bytes, the same contract the model layer keeps.
ยงErrors
As write().