Function tomlq_rs::query_toml_value
source · [−]Expand description
Query value from toml by key.
Examples
let toml_str = r#"key = "value" # This is a comment at the end of a line"#;
let key = "key";
let value = query_toml_value(toml_str, key).unwrap();
assert_eq!(value, "value");