Skip to main content

rename

Function rename 

Source
pub fn rename(from: &str, to: &str) -> Result<(), &'static str>
Expand description

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).