Expand description
TOML configuration parser.
This is only usable if you enabled toml Cargo feature.
§Example
use plugx_config::parser::{Parser, toml::Toml};
use plugx_input::Input;
let bytes = br#"
hello=["w", "o", "l", "d"]
[foo]
bar = {baz = "Qux", abc = 3.14}
xyz = false
"#;
let parser = Toml::new();
let parsed: Input = parser.parse(bytes.as_slice()).unwrap();
assert!(parsed.is_map());
let map = parsed.as_map();
assert!(
map.len() == 2 &&
map.contains_key("foo") &&
map.contains_key("hello")
);