Skip to main content

insert_path

Function insert_path 

Source
pub fn insert_path(map: &mut Mapping, path: &str, value: Value)
Expand description

Insert value at the dotted field path in map, creating the mappings on the way — the write that pairs with Value::get_path. A segment that exists and is not a mapping is replaced by one, since the path says what the caller means to write.