Skip to main content

merge_section

Function merge_section 

Source
pub fn merge_section(
    doc: &mut Map<String, Value>,
    name: &str,
    values: Map<String, Value>,
)
Expand description

Merge values into section name of doc, keeping every other section and every key values does not mention. A section of the wrong type is replaced: there is nothing to preserve in a value that cannot be read.