pub fn toml_encode_pretty_compact<T: Serialize>(value: &T) -> Result<String>Expand description
Render a value as pretty TOML with:
- Keys sorted alphabetically at every nesting level.
- Empty tables emitted inline as
{}rather than as a[name]header. Empty arrays already render inline as[]via the default toml serializer, so no special handling is needed.
Useful for human-readable diagnostic output where stable scan-friendly ordering matters and empty-table headers would add visual noise.