pub fn write_config_toml(
path: &Path,
doc: &DocumentMut,
) -> Result<(), MantaError>Expand description
Writes a DocumentMut back to the manta configuration file.
Opens path with write | truncate and replaces its contents with
the document’s serialised form. Paired with read_config_toml
for round-tripping manta config set edits.
§Errors
Returns MantaError::IoError if the file cannot be opened,
written to, or flushed.