pub trait PathExt {
const PATH_SEPARATOR: char;
// Required methods
fn as_slash_str(&self) -> String;
fn same_fs_as<P: AsRef<Path>>(&self, other: &P) -> bool;
fn rename_safe<P: AsRef<Path>>(&self, target: &P) -> Result<()>;
}
Required Associated Constants§
const PATH_SEPARATOR: char
Required Methods§
fn as_slash_str(&self) -> String
fn same_fs_as<P: AsRef<Path>>(&self, other: &P) -> bool
fn rename_safe<P: AsRef<Path>>(&self, target: &P) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.