Trait ra_ap_base_db::FileLoader

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

Required Methods§

source

fn file_text(&self, file_id: FileId) -> Arc<str>

Text of the file.

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§