Skip to main content

write_yaml

Function write_yaml 

Source
pub fn write_yaml(
    doc: &Doc,
    strict: bool,
    report: Option<&mut WriteReport>,
) -> Result<String, WriteError>
Expand description

Project a Doc to YAML text (block style, 2-space indent, insertion order preserved – matching Python’s yaml.dump(..., sort_keys=False, default_flow_style=False)).