pub fn rename(from: &str, to: &str) -> Result<(), &'static str>
Rename from to to, replacing to — std::fs::rename. Same filesystem only, which is how its callers use it (write-then-rename beside the target).
from
to
std::fs::rename