pub fn to_document<T: ?Sized>(value: &T) -> Result<Document, Error>where
    T: Serialize,
Expand description

Serialize the given data structure into a TOML document.

This would allow custom formatting to be applied, mixing with format preserving edits, etc.