Function yaml_to_toml
Source pub fn yaml_to_toml(yaml: &str) -> Result<String, Box<dyn Error>>
Expand description
Converts YAML to TOML via the canonical hub.
§Errors
Returns an error if the YAML is malformed or cannot be represented in TOML.
§Examples
use sheeter_engine::yaml_to_toml;
let toml = yaml_to_toml("- a: 1\n").unwrap();
assert!(toml.contains("[[item]]"));