pub fn to_document<T>(value: &T) -> Result<DocumentMut, Error>where T: Serialize + ?Sized,
Serialize the given data structure into a TOML document.
This would allow custom formatting to be applied, mixing with format preserving edits, etc.