Skip to main content

Rename

Trait Rename 

Source
pub trait Rename: Filesystem {
    // Required method
    fn rename(&self, from: &Path, to: &Path) -> Result<()>;
}

Required Methods§

Source

fn rename(&self, from: &Path, to: &Path) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§