pub trait FileLoader {
// Required methods
fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>;
fn relevant_crates(&self, file_id: FileId) -> Arc<[CrateId]>;
}
Required Methods§
fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>
sourcefn relevant_crates(&self, file_id: FileId) -> Arc<[CrateId]>
fn relevant_crates(&self, file_id: FileId) -> Arc<[CrateId]>
Crates whose root’s source root is the same as the source root of file_id