PathResolver

Trait PathResolver 

Source
pub trait PathResolver: WorkspacePaths {
    // Provided methods
    fn resolve<P>(&self, relative: P) -> PathBuf
       where P: AsRef<Path> { ... }
    fn resolve_config<P>(&self, relative: P) -> PathBuf
       where P: AsRef<Path> { ... }
}
Expand description

Helper trait that adds path resolution helpers on top of WorkspacePaths.

Provided Methods§

Source

fn resolve<P>(&self, relative: P) -> PathBuf
where P: AsRef<Path>,

Resolve a path relative to the workspace root.

Source

fn resolve_config<P>(&self, relative: P) -> PathBuf
where P: AsRef<Path>,

Resolve a path within the configuration directory.

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§

Source§

impl<T> PathResolver for T
where T: WorkspacePaths + ?Sized,