Trait PathExt

Source
pub trait PathExt {
    // Required methods
    fn replace<T: AsRef<str>>(&self, old: T, new: T) -> PathBuf;
    fn contains<T: AsRef<str>>(&self, path: T) -> bool;
}

Required Methods§

Source

fn replace<T: AsRef<str>>(&self, old: T, new: T) -> PathBuf

Source

fn contains<T: AsRef<str>>(&self, path: T) -> bool

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.

Implementations on Foreign Types§

Source§

impl PathExt for Path

Source§

fn replace<T: AsRef<str>>(&self, old: T, new: T) -> PathBuf

Source§

fn contains<T: AsRef<str>>(&self, s: T) -> bool

Implementors§