Expand description
A low-level interface for writing out TOML
§Example
use toml_write::TomlWrite as _;
let mut output = String::new();
output.newline()?;
output.open_table_header()?;
output.key("table")?;
output.close_table_header()?;
output.newline()?;
output.key("key")?;
output.space()?;
output.keyval_sep()?;
output.space()?;
output.value("value")?;
output.newline()?;
assert_eq!(output, r#"
[table]
key = "value"
"#);