Skip to main content

sync_table

Function sync_table 

Source
pub fn sync_table(doc: &mut Table, target: &Table)
Expand description

Recursively syncs doc (a formatted TOML document) to match target: removes keys absent from target, inserts/updates keys that differ, recurses into nested tables, and leaves unchanged values (and their formatting/comments) untouched.