Skip to main content

write_entries

Function write_entries 

Source
pub fn write_entries<T: Serialize + DeserializeOwned>(
    path: &Path,
    entries: &BTreeMap<String, T>,
) -> Result<(), String>
Expand description

Writes entries as the file’s records, plus every record already in the file that this build cannot read (they are not in entries because they never loaded, so the caller did not choose to drop them), exactly as they are. A file that is not an object of records is copied aside first. Written to a temp file and renamed.