pub fn tmp_path_for(path: &Path) -> PathBufExpand description
Compute the temp path used by atomic_write. Splitting this out
lets callers reason about the rename target shape (and unit-test the
orphan-cleanup path) without going through the filesystem.