pub fn rename_no_replace(from: &Path, to: &Path) -> Result<()>
Rename from to to, failing with AlreadyExists instead of replacing an existing to (a file, a folder, even an empty one, or a link, even a dangling one).
from
to
AlreadyExists