pub fn format(source: &str, config: &FormatConfig) -> Result<String>Expand description
Format RON source with the given configuration.
ยงExample
use ron2::FormatConfig;
let source = "(x:1,y:2)";
let formatted = ron2::format(source, &FormatConfig::default())?;