ImportResolver

Trait ImportResolver 

Source
pub trait ImportResolver {
    // Required method
    fn resolve_import(
        &self,
        cwd: &Path,
        relpath: &Path,
    ) -> Result<String, String>;
}
Expand description

A trait for types which can resolve filesystem-like paths relative to a given directory.

Required Methods§

Source

fn resolve_import(&self, cwd: &Path, relpath: &Path) -> Result<String, String>

Implementors§