pub trait LanguageResolver: Send + Sync {
// Required methods
fn resolve(
&self,
import: &ImportStatement,
importing_file: &str,
file_index: &FileIndex,
) -> Option<String>;
fn language(&self) -> Language;
fn name(&self) -> &'static str;
}Expand description
Trait for language-specific import resolution.
Each implementation maps an ImportStatement from a source file to a
repo-relative file path, using the FileIndex for existence checks.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".