Function to_string_pretty

pub fn to_string_pretty<T>(value: &T) -> Result<String, Error> 
where T: Serialize + ?Sized,
Available on crate feature dep_toml_edit only.
Expand description

Serialize the given data structure as a “pretty” String of TOML.

This is identical to to_string except the output string has a more “pretty” output. See ValueSerializer::pretty for more details.