Function atomic_write

Source
pub fn atomic_write(
    path: &Path,
    op: impl FnOnce(&mut File) -> Result<()>,
) -> Result<File>