ImportResolver

Trait ImportResolver 

Source
pub trait ImportResolver {
    // Required methods
    fn current_file_name(&self) -> PathBuf;
    fn new_context(&self, location: &Path) -> AstResult<Self>
       where Self: Sized;
    fn load(&self) -> AstResult<String>;
}
Expand description

Provides a binding to paths which are used for resolving @import expressions

Required Methods§

Source

fn current_file_name(&self) -> PathBuf

Source

fn new_context(&self, location: &Path) -> AstResult<Self>
where Self: Sized,

Source

fn load(&self) -> AstResult<String>

Implementors§