Trait sdml_core::load::ModuleResolver
source · pub trait ModuleResolver: Debug {
// Required methods
fn prepend_to_search_path(&self, path: &Path);
fn append_to_search_path(&self, path: &Path);
fn name_to_path(&self, name: &Identifier) -> Result<PathBuf, Error>;
}
Expand description
The resolver implements the logic to map module identifiers to file system paths using the
environment variable SDML_PATH
to contain a search path.
Note this trait does not require mutability even for clearly mutating operations.