Skip to main content

parse_inline_object

Function parse_inline_object 

Source
pub fn parse_inline_object(
    value: &str,
) -> Result<Vec<(String, String)>, AamlError>
Expand description

Parses an inline object { key = val, key2 = val2, ... } into (key, value) pairs.

Field separators are commas respecting {} / [] nesting, so values like { base = { x = 1, y = 2 }, z = 3 } are parsed correctly.