Skip to main content

PathExt

Trait PathExt 

Source
pub trait PathExt {
    // Required method
    fn join_good(&self, other: impl Into<PathBuf>) -> PathBuf;
}

Required Methods§

Source

fn join_good(&self, other: impl Into<PathBuf>) -> PathBuf

Join but without the overwriting that happens if other is an absolute path

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PathExt for Path

Source§

fn join_good(&self, other: impl Into<PathBuf>) -> PathBuf

Version of join that doesn’t remove replace if absolute

Implementors§