Skip to main content

set_preserving

Function set_preserving 

Source
pub fn set_preserving(
    content: &str,
    path: &str,
    value: &Value,
) -> DocumentResult<String>
Expand description

Edit an existing scalar item in a TOML document without reserializing the surrounding document. Comments, ordering, whitespace, and datetime syntax outside the target remain owned by toml_edit::DocumentMut.