pub fn rename<P: AsRef<CStr>, Q: AsRef<CStr>>(from: P, to: Q) -> Result<()>
Available on crate feature
fs
only.Expand description
Rename a file or directory to a new name, replacing the original file if
to
already exists.
See std::fs::rename
documentation for details.
ยงPlatform-specific behavior
Currently, this function is not supported on MIPS32/MIPS64.