Function rustix::fs::renameat_with

pub fn renameat_with<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>(old_dirfd: &PFd, old_path: P, new_dirfd: &QFd, new_path: Q, flags: RenameFlags) -> io::Result<()>
Documentation

renameat2(old_dirfd, old_path, new_dirfd, new_path, flags)—Renames a file or directory.

References