pub trait LanguageResolver: Send + Sync {
// Required method
fn resolve_import(
&self,
import_path: &str,
source_file: &str,
project_root: &Path,
) -> Option<PathBuf>;
}Expand description
Trait for language-specific import/module resolution.
Required Methods§
fn resolve_import( &self, import_path: &str, source_file: &str, project_root: &Path, ) -> Option<PathBuf>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".