Skip to main content

write_entries_removing

Function write_entries_removing 

Source
pub fn write_entries_removing<T: Serialize + DeserializeOwned>(
    path: &Path,
    entries: &BTreeMap<String, T>,
    removed: &[&str],
) -> Result<(), String>
Expand description

write_entries for a save that deletes records on purpose: each key of removed is dropped from the file even when this build cannot read its record (an uninstall must revoke what it names, not leave it for a later build to find).