[−][src]Trait ra_ap_ide_db::symbol_index::SymbolsDatabase
Required methods
pub fn file_symbols(&self, key0: FileId) -> Arc<SymbolIndex>
[src]
pub fn library_symbols(&self) -> Arc<FxHashMap<SourceRootId, SymbolIndex>>
[src]
pub fn local_roots(&self) -> Arc<FxHashSet<SourceRootId>>
[src]
The set of "local" (that is, from the current workspace) roots. Files in local roots are assumed to change frequently.
pub fn set_local_roots(&mut self, value__: Arc<FxHashSet<SourceRootId>>)
[src]
Set the value of the local_roots
input.
See local_roots
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
pub fn set_local_roots_with_durability(
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
[src]
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
Set the value of the local_roots
input and promise
that its value will never change again.
See local_roots
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
pub fn library_roots(&self) -> Arc<FxHashSet<SourceRootId>>
[src]
The set of roots for crates.io libraries. Files in libraries are assumed to never change.
pub fn set_library_roots(&mut self, value__: Arc<FxHashSet<SourceRootId>>)
[src]
Set the value of the library_roots
input.
See library_roots
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
pub fn set_library_roots_with_durability(
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
[src]
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
Set the value of the library_roots
input and promise
that its value will never change again.
See library_roots
for details.
Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.
Implementors
impl<DB> SymbolsDatabase for DB where
DB: HirDatabase + SourceDatabaseExt,
DB: Database,
DB: HasQueryGroup<SymbolsDatabaseStorage>,
[src]
DB: HirDatabase + SourceDatabaseExt,
DB: Database,
DB: HasQueryGroup<SymbolsDatabaseStorage>,
pub fn file_symbols(&self, key0: FileId) -> Arc<SymbolIndex>
[src]
pub fn library_symbols(&self) -> Arc<FxHashMap<SourceRootId, SymbolIndex>>
[src]
pub fn local_roots(&self) -> Arc<FxHashSet<SourceRootId>>
[src]
pub fn set_local_roots(&mut self, value__: Arc<FxHashSet<SourceRootId>>)
[src]
pub fn set_local_roots_with_durability(
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
[src]
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
pub fn library_roots(&self) -> Arc<FxHashSet<SourceRootId>>
[src]
pub fn set_library_roots(&mut self, value__: Arc<FxHashSet<SourceRootId>>)
[src]
pub fn set_library_roots_with_durability(
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)
[src]
&mut self,
value__: Arc<FxHashSet<SourceRootId>>,
durability__: Durability
)