Skip to main content

parse_edit_buffer

Function parse_edit_buffer 

Source
pub fn parse_edit_buffer(
    content: &str,
    validate_key: fn(&str) -> bool,
) -> (BTreeMap<String, String>, Vec<ParseWarning>)
Expand description

Parse a KEY=VALUE edit buffer, filtering comments and blank lines. Returns parsed entries and any warnings for malformed lines.