[−][src]Trait ra_ap_base_db::SourceDatabase
Database which stores all significant input facts: source code and project model. Everything else in rust-analyzer is derived from these queries.
Required methods
pub fn parse(&self, key0: FileId) -> Parse<SourceFile>
[src]
pub fn crate_graph(&self) -> Arc<CrateGraph>
[src]
The crate graph.
pub fn set_crate_graph(&mut self, value__: Arc<CrateGraph>)
[src]
Set the value of the crate_graph
input.
See crate_graph
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
pub fn set_crate_graph_with_durability(
&mut self,
value__: Arc<CrateGraph>,
durability__: Durability
)
[src]
&mut self,
value__: Arc<CrateGraph>,
durability__: Durability
)
Set the value of the crate_graph
input and promise
that its value will never change again.
See crate_graph
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
Implementors
impl<DB> SourceDatabase for DB where
DB: CheckCanceled + FileLoader + Debug,
DB: Database,
DB: HasQueryGroup<SourceDatabaseStorage>,
[src]
DB: CheckCanceled + FileLoader + Debug,
DB: Database,
DB: HasQueryGroup<SourceDatabaseStorage>,
pub fn parse(&self, key0: FileId) -> Parse<SourceFile>
[src]
pub fn crate_graph(&self) -> Arc<CrateGraph>
[src]
pub fn set_crate_graph(&mut self, value__: Arc<CrateGraph>)
[src]
pub fn set_crate_graph_with_durability(
&mut self,
value__: Arc<CrateGraph>,
durability__: Durability
)
[src]
&mut self,
value__: Arc<CrateGraph>,
durability__: Durability
)