Skip to main content

write_oml

Function write_oml 

Source
pub fn write_oml(node: &RawNode, indent: usize) -> Result<String, WriteError>
Expand description

Render a canonical RawNode as OML-Core source, pretty-printed with indent spaces per nesting level.

OML is lossless for every Document: there’s never an adjustment to report, so there’s no strict=/report machinery – writing always succeeds, unless the input itself nests deeper than crate::document::MAX_DEPTH (see the module doc comment on the depth guard).