[][src]Trait ra_ap_base_db::SourceDatabase

pub trait SourceDatabase: Database + HasQueryGroup<SourceDatabaseStorage> + CheckCanceled + FileLoader + Debug {
    pub fn parse(&self, key0: FileId) -> Parse<SourceFile>;
pub fn crate_graph(&self) -> Arc<CrateGraph>;
pub fn set_crate_graph(&mut self, value__: Arc<CrateGraph>);
pub fn set_crate_graph_with_durability(
        &mut self,
        value__: Arc<CrateGraph>,
        durability__: Durability
    ); }

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]

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.

Loading content...

Implementors

impl<DB> SourceDatabase for DB where
    DB: CheckCanceled + FileLoader + Debug,
    DB: Database,
    DB: HasQueryGroup<SourceDatabaseStorage>, 
[src]

Loading content...