[][src]Trait ra_ap_base_db::SourceDatabaseExt

pub trait SourceDatabaseExt: Database + HasQueryGroup<SourceDatabaseExtStorage> + SourceDatabase {
    pub fn file_text(&self, key0: FileId) -> Arc<String>;
pub fn set_file_text(&mut self, key0: FileId, value__: Arc<String>);
pub fn set_file_text_with_durability(
        &mut self,
        key0: FileId,
        value__: Arc<String>,
        durability__: Durability
    );
pub fn file_source_root(&self, key0: FileId) -> SourceRootId;
pub fn set_file_source_root(&mut self, key0: FileId, value__: SourceRootId);
pub fn set_file_source_root_with_durability(
        &mut self,
        key0: FileId,
        value__: SourceRootId,
        durability__: Durability
    );
pub fn source_root(&self, key0: SourceRootId) -> Arc<SourceRoot>;
pub fn set_source_root(
        &mut self,
        key0: SourceRootId,
        value__: Arc<SourceRoot>
    );
pub fn set_source_root_with_durability(
        &mut self,
        key0: SourceRootId,
        value__: Arc<SourceRoot>,
        durability__: Durability
    );
pub fn source_root_crates(
        &self,
        key0: SourceRootId
    ) -> Arc<FxHashSet<CrateId>>; }

We don't want to give HIR knowledge of source roots, hence we extract these methods into a separate DB.

Required methods

pub fn file_text(&self, key0: FileId) -> Arc<String>[src]

pub fn set_file_text(&mut self, key0: FileId, value__: Arc<String>)[src]

Set the value of the file_text input.

See file_text for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

pub fn set_file_text_with_durability(
    &mut self,
    key0: FileId,
    value__: Arc<String>,
    durability__: Durability
)
[src]

Set the value of the file_text input and promise that its value will never change again.

See file_text for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

pub fn file_source_root(&self, key0: FileId) -> SourceRootId[src]

Path to a file, relative to the root of its source root. Source root of the file.

pub fn set_file_source_root(&mut self, key0: FileId, value__: SourceRootId)[src]

Set the value of the file_source_root input.

See file_source_root for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

pub fn set_file_source_root_with_durability(
    &mut self,
    key0: FileId,
    value__: SourceRootId,
    durability__: Durability
)
[src]

Set the value of the file_source_root input and promise that its value will never change again.

See file_source_root for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

pub fn source_root(&self, key0: SourceRootId) -> Arc<SourceRoot>[src]

Contents of the source root.

pub fn set_source_root(&mut self, key0: SourceRootId, value__: Arc<SourceRoot>)[src]

Set the value of the source_root input.

See source_root for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

pub fn set_source_root_with_durability(
    &mut self,
    key0: SourceRootId,
    value__: Arc<SourceRoot>,
    durability__: Durability
)
[src]

Set the value of the source_root input and promise that its value will never change again.

See source_root for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

pub fn source_root_crates(&self, key0: SourceRootId) -> Arc<FxHashSet<CrateId>>[src]

Loading content...

Implementors

impl<DB> SourceDatabaseExt for DB where
    DB: SourceDatabase,
    DB: Database,
    DB: HasQueryGroup<SourceDatabaseExtStorage>, 
[src]

Loading content...