Trait PathExt

Source
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§

Required Methods§

Source

fn as_slash_str(&self) -> String

Source

fn same_fs_as<P: AsRef<Path>>(&self, other: &P) -> bool

Source

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.

Implementors§