Trait Resolver

Source
pub trait Resolver {
    // Required method
    fn find_include(
        &self,
        context: &Context<'_>,
        root: &str,
        from: &str,
        to: &str,
        source: Vec<Token>,
    ) -> Result<(PathBuf, String), Error>;
}
Expand description

A trait for resolving includes

Required Methods§

Source

fn find_include( &self, context: &Context<'_>, root: &str, from: &str, to: &str, source: Vec<Token>, ) -> Result<(PathBuf, String), Error>

Find the path to an included file

§Errors

Error::IncludeNotFound if the file is not found

Implementors§