base_db

Trait FileLoader

source
pub trait FileLoader {
    // Required methods
    fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>;
    fn relevant_crates(&self, file_id: FileId) -> Arc<[CrateId]>;
}

Required Methods§

source

fn resolve_path(&self, path: AnchoredPath<'_>) -> Option<FileId>

source

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

Implementors§