Struct ra_ap_ide_db::RootDatabase [−][src]
pub struct RootDatabase { /* fields omitted */ }
Implementations
impl RootDatabase
[src]
impl RootDatabase
[src]pub fn request_cancellation(&mut self)
[src]
pub fn apply_change(&mut self, change: Change)
[src]
pub fn collect_garbage(&mut self)
[src]
pub fn per_query_memory_usage(&mut self) -> Vec<(String, Bytes)>
[src]
impl RootDatabase
[src]
impl RootDatabase
[src]pub fn new(lru_capacity: Option<usize>) -> RootDatabase
[src]
pub fn update_lru_capacity(&mut self, lru_capacity: Option<usize>)
[src]
Trait Implementations
impl Database for RootDatabase
[src]
impl Database for RootDatabase
[src]fn on_propagated_panic(&self) -> !
[src]
fn on_propagated_panic(&self) -> !
[src]This function is invoked when a dependent query is being computed by the other thread, and that thread panics. Read more
fn salsa_event(&self, event: Event)
[src]
fn salsa_event(&self, event: Event)
[src]This function is invoked at key points in the salsa runtime. It permits the database to be customized and to inject logging or other custom behavior. Read more
fn sweep_all(&self, strategy: SweepStrategy)
fn sweep_all(&self, strategy: SweepStrategy)
Iterates through all query storage and removes any values that have not been used since the last revision was created. The intended use-cycle is that you first execute all of your “main” queries; this will ensure that all query values they consume are marked as used. You then invoke this method to remove other values that were not needed for your main query results. Read more
fn salsa_runtime(&self) -> &Runtime
fn salsa_runtime(&self) -> &Runtime
Gives access to the underlying salsa runtime.
fn salsa_runtime_mut(&mut self) -> &mut Runtime
fn salsa_runtime_mut(&mut self) -> &mut Runtime
Gives access to the underlying salsa runtime.
impl DatabaseOps for RootDatabase
[src]
impl DatabaseOps for RootDatabase
[src]fn ops_database(&self) -> &dyn Database
[src]
fn ops_database(&self) -> &dyn Database
[src]Upcast this type to a dyn Database
.
fn ops_salsa_runtime(&self) -> &Runtime
[src]
fn ops_salsa_runtime(&self) -> &Runtime
[src]Gives access to the underlying salsa runtime.
fn ops_salsa_runtime_mut(&mut self) -> &mut Runtime
[src]
fn ops_salsa_runtime_mut(&mut self) -> &mut Runtime
[src]Gives access to the underlying salsa runtime.
fn fmt_index(&self, input: DatabaseKeyIndex, fmt: &mut Formatter<'_>) -> Result
[src]
fn fmt_index(&self, input: DatabaseKeyIndex, fmt: &mut Formatter<'_>) -> Result
[src]Formats a database key index in a human readable fashion.
fn maybe_changed_since(
&self,
input: DatabaseKeyIndex,
revision: Revision
) -> bool
[src]
fn maybe_changed_since(
&self,
input: DatabaseKeyIndex,
revision: Revision
) -> bool
[src]True if the computed value for input
may have changed since revision
.
fn for_each_query(&self, op: &mut dyn FnMut(&dyn QueryStorageMassOps))
[src]
fn for_each_query(&self, op: &mut dyn FnMut(&dyn QueryStorageMassOps))
[src]Executes the callback for each kind of query.
impl DatabaseStorageTypes for RootDatabase
[src]
impl DatabaseStorageTypes for RootDatabase
[src]type DatabaseStorage = __SalsaDatabaseStorage
type DatabaseStorage = __SalsaDatabaseStorage
Defines the “storage type”, where all the query data is kept.
This type is defined by the database_storage
macro. Read more
impl Debug for RootDatabase
[src]
impl Debug for RootDatabase
[src]impl Default for RootDatabase
[src]
impl Default for RootDatabase
[src]fn default() -> RootDatabase
[src]
fn default() -> RootDatabase
[src]Returns the “default value” for a type. Read more
impl FileLoader for RootDatabase
[src]
impl FileLoader for RootDatabase
[src]impl HasQueryGroup<AstDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<AstDatabaseStorage> for RootDatabase
[src]fn group_storage(&self) -> &<AstDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(&self) -> &<AstDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<DefDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<DefDatabaseStorage> for RootDatabase
[src]fn group_storage(&self) -> &<DefDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(&self) -> &<DefDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<HirDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<HirDatabaseStorage> for RootDatabase
[src]fn group_storage(&self) -> &<HirDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(&self) -> &<HirDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<InternDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<InternDatabaseStorage> for RootDatabase
[src]fn group_storage(&self) -> &<InternDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(&self) -> &<InternDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<LineIndexDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<LineIndexDatabaseStorage> for RootDatabase
[src]fn group_storage(
&self
) -> &<LineIndexDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(
&self
) -> &<LineIndexDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<SourceDatabaseExtStorage> for RootDatabase
[src]
impl HasQueryGroup<SourceDatabaseExtStorage> for RootDatabase
[src]fn group_storage(
&self
) -> &<SourceDatabaseExtStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(
&self
) -> &<SourceDatabaseExtStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<SourceDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<SourceDatabaseStorage> for RootDatabase
[src]fn group_storage(&self) -> &<SourceDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(&self) -> &<SourceDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl HasQueryGroup<SymbolsDatabaseStorage> for RootDatabase
[src]
impl HasQueryGroup<SymbolsDatabaseStorage> for RootDatabase
[src]fn group_storage(&self) -> &<SymbolsDatabaseStorage as QueryGroup>::GroupStorage
[src]
fn group_storage(&self) -> &<SymbolsDatabaseStorage as QueryGroup>::GroupStorage
[src]Access the group storage struct from the database.
impl ParallelDatabase for RootDatabase
[src]
impl ParallelDatabase for RootDatabase
[src]fn snapshot(&self) -> Snapshot<RootDatabase>
[src]
fn snapshot(&self) -> Snapshot<RootDatabase>
[src]impl Upcast<dyn AstDatabase + 'static> for RootDatabase
[src]
impl Upcast<dyn AstDatabase + 'static> for RootDatabase
[src]impl Upcast<dyn DefDatabase + 'static> for RootDatabase
[src]
impl Upcast<dyn DefDatabase + 'static> for RootDatabase
[src]impl Upcast<dyn HirDatabase + 'static> for RootDatabase
[src]
impl Upcast<dyn HirDatabase + 'static> for RootDatabase
[src]Auto Trait Implementations
impl RefUnwindSafe for RootDatabase
impl Send for RootDatabase
impl !Sync for RootDatabase
impl Unpin for RootDatabase
impl UnwindSafe for RootDatabase
Blanket Implementations
impl<DB> AstDatabase for DB where
DB: SourceDatabase + Database + HasQueryGroup<AstDatabaseStorage>,
impl<DB> AstDatabase for DB where
DB: SourceDatabase + Database + HasQueryGroup<AstDatabaseStorage>,
pub fn ast_id_map(&self, key0: HirFileId) -> Arc<AstIdMap>
pub fn parse_or_expand(
&self,
key0: HirFileId
) -> Option<SyntaxNode<RustLanguage>>
pub fn parse_or_expand(
&self,
key0: HirFileId
) -> Option<SyntaxNode<RustLanguage>>
Main public API – parsis a hir file, not caring whether it’s a real file or a macro expansion. Read more
pub fn parse_macro_expansion(
&self,
key0: MacroFile
) -> ExpandResult<Option<(Parse<SyntaxNode<RustLanguage>>, Arc<TokenMap>)>>
pub fn parse_macro_expansion(
&self,
key0: MacroFile
) -> ExpandResult<Option<(Parse<SyntaxNode<RustLanguage>>, Arc<TokenMap>)>>
Implementation for the macro case.
pub fn intern_macro(&self, key0: MacroCallLoc) -> MacroCallId
pub fn intern_macro(&self, key0: MacroCallLoc) -> MacroCallId
Macro ids. That’s probably the tricksiest bit in rust-analyzer, and the reason why we use salsa at all. Read more
pub fn lookup_intern_macro(&self, key0: MacroCallId) -> MacroCallLoc
pub fn macro_arg(&self, key0: MacroCallId) -> Option<Arc<(Subtree, TokenMap)>>
pub fn macro_arg(&self, key0: MacroCallId) -> Option<Arc<(Subtree, TokenMap)>>
Lowers syntactic macro call to a token tree representation.
pub fn macro_arg_text(&self, key0: MacroCallId) -> Option<GreenNode>
pub fn macro_arg_text(&self, key0: MacroCallId) -> Option<GreenNode>
Extracts syntax node, corresponding to a macro call. That’s a firewall query, only typing in the macro call itself changes the returned subtree. Read more
pub fn macro_def(&self, key0: MacroDefId) -> Option<Arc<TokenExpander>>
pub fn macro_def(&self, key0: MacroDefId) -> Option<Arc<TokenExpander>>
Gets the expander for this macro. This compiles declarative macros, and just fetches procedural ones. Read more
pub fn macro_expand(
&self,
key0: MacroCallId
) -> ExpandResult<Option<Arc<Subtree>>>
pub fn macro_expand(
&self,
key0: MacroCallId
) -> ExpandResult<Option<Arc<Subtree>>>
Expand macro call to a token tree. This query is LRUed (we keep 128 or so results in memory)
pub fn expand_proc_macro(
&self,
key0: MacroCallId
) -> Result<Subtree, ExpandError>
pub fn expand_proc_macro(
&self,
key0: MacroCallId
) -> Result<Subtree, ExpandError>
Special case of the previous query for procedural macros. We can’t LRU proc macros, since they are not deterministic in general, and non-determinism breaks salsa in a very, very, very bad way. @edwin0cheng heroically debugged this once! Read more
pub fn macro_expand_error(&self, key0: MacroCallId) -> Option<ExpandError>
pub fn macro_expand_error(&self, key0: MacroCallId) -> Option<ExpandError>
Firewall query that returns the error from the macro_expand
query.
pub fn hygiene_frame(&self, key0: HirFileId) -> Arc<HygieneFrame>
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
impl<T> CheckCanceled for T where
T: Database,
[src]
impl<T> CheckCanceled for T where
T: Database,
[src]pub fn check_canceled(&self)
[src]
pub fn check_canceled(&self)
[src]Aborts current query if there are pending changes. Read more
fn catch_canceled<F, T>(&self, f: F) -> Result<T, Canceled> where
Self: RefUnwindSafe,
F: FnOnce(&Self) -> T + UnwindSafe,
[src]
Self: RefUnwindSafe,
F: FnOnce(&Self) -> T + UnwindSafe,
impl<DB> DefDatabase for DB where
DB: InternDatabase + AstDatabase + Upcast<dyn AstDatabase + 'static> + Database + HasQueryGroup<DefDatabaseStorage>,
impl<DB> DefDatabase for DB where
DB: InternDatabase + AstDatabase + Upcast<dyn AstDatabase + 'static> + Database + HasQueryGroup<DefDatabaseStorage>,
pub fn file_item_tree(&self, key0: HirFileId) -> Arc<ItemTree>
pub fn crate_def_map(&self, key0: CrateId) -> Arc<DefMap>
pub fn crate_def_map_query(&self, key0: CrateId) -> Arc<DefMap>
pub fn block_def_map(&self, key0: BlockId) -> Option<Arc<DefMap>>
pub fn block_def_map(&self, key0: BlockId) -> Option<Arc<DefMap>>
Computes the block-level DefMap
, returning None
when block
doesn’t contain any inner
items directly. Read more
pub fn struct_data(&self, key0: StructId) -> Arc<StructData>
pub fn union_data(&self, key0: UnionId) -> Arc<StructData>
pub fn enum_data(&self, key0: EnumId) -> Arc<EnumData>
pub fn impl_data(&self, key0: ImplId) -> Arc<ImplData>
pub fn trait_data(&self, key0: TraitId) -> Arc<TraitData>
pub fn type_alias_data(&self, key0: TypeAliasId) -> Arc<TypeAliasData>
pub fn function_data(&self, key0: FunctionId) -> Arc<FunctionData>
pub fn const_data(&self, key0: ConstId) -> Arc<ConstData>
pub fn static_data(&self, key0: StaticId) -> Arc<StaticData>
pub fn body_with_source_map(
&self,
key0: DefWithBodyId
) -> (Arc<Body>, Arc<BodySourceMap>)
&self,
key0: DefWithBodyId
) -> (Arc<Body>, Arc<BodySourceMap>)
pub fn body(&self, key0: DefWithBodyId) -> Arc<Body>
pub fn expr_scopes(&self, key0: DefWithBodyId) -> Arc<ExprScopes>
pub fn generic_params(&self, key0: GenericDefId) -> Interned<GenericParams>
pub fn variants_attrs(
&self,
key0: EnumId
) -> Arc<ArenaMap<Idx<EnumVariantData>, Attrs>>
&self,
key0: EnumId
) -> Arc<ArenaMap<Idx<EnumVariantData>, Attrs>>
pub fn fields_attrs(
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Attrs>>
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Attrs>>
pub fn variants_attrs_source_map(
&self,
key0: EnumId
) -> Arc<ArenaMap<Idx<EnumVariantData>, AstPtr<Variant>>>
&self,
key0: EnumId
) -> Arc<ArenaMap<Idx<EnumVariantData>, AstPtr<Variant>>>
pub fn fields_attrs_source_map(
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Either<AstPtr<TupleField>, AstPtr<RecordField>>>>
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Either<AstPtr<TupleField>, AstPtr<RecordField>>>>
pub fn attrs(&self, key0: AttrDefId) -> AttrsWithOwner
pub fn crate_lang_items(&self, key0: CrateId) -> Arc<LangItems>
pub fn lang_item(&self, key0: CrateId, key1: SmolStr) -> Option<LangItemTarget>
pub fn import_map(&self, key0: CrateId) -> Arc<ImportMap>
pub fn field_visibilities(
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Visibility>>
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Visibility>>
pub fn function_visibility(&self, key0: FunctionId) -> Visibility
impl<DB> HirDatabase for DB where
DB: DefDatabase + Upcast<dyn DefDatabase + 'static> + Database + HasQueryGroup<HirDatabaseStorage>,
impl<DB> HirDatabase for DB where
DB: DefDatabase + Upcast<dyn DefDatabase + 'static> + Database + HasQueryGroup<HirDatabaseStorage>,
pub fn infer(&self, key0: DefWithBodyId) -> Arc<InferenceResult>
pub fn infer_query(&self, key0: DefWithBodyId) -> Arc<InferenceResult>
pub fn ty(&self, key0: TyDefId) -> Binders<Ty<Interner>>
pub fn value_ty(&self, key0: ValueTyDefId) -> Binders<Ty<Interner>>
pub fn impl_self_ty(&self, key0: ImplId) -> Binders<Ty<Interner>>
pub fn const_param_ty(&self, key0: ConstParamId) -> Ty<Interner>
pub fn impl_trait(&self, key0: ImplId) -> Option<Binders<TraitRef<Interner>>>
pub fn field_types(
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Binders<Ty<Interner>>>>
&self,
key0: VariantId
) -> Arc<ArenaMap<Idx<FieldData>, Binders<Ty<Interner>>>>
pub fn callable_item_signature(
&self,
key0: CallableDefId
) -> Binders<CallableSig>
&self,
key0: CallableDefId
) -> Binders<CallableSig>
pub fn return_type_impl_traits(
&self,
key0: FunctionId
) -> Option<Arc<Binders<ReturnTypeImplTraits>>>
&self,
key0: FunctionId
) -> Option<Arc<Binders<ReturnTypeImplTraits>>>
pub fn generic_predicates_for_param(
&self,
key0: TypeParamId
) -> Arc<[Binders<Binders<WhereClause<Interner>>>]>
&self,
key0: TypeParamId
) -> Arc<[Binders<Binders<WhereClause<Interner>>>]>
pub fn generic_predicates(
&self,
key0: GenericDefId
) -> Arc<[Binders<Binders<WhereClause<Interner>>>]>
&self,
key0: GenericDefId
) -> Arc<[Binders<Binders<WhereClause<Interner>>>]>
pub fn trait_environment(&self, key0: GenericDefId) -> Arc<TraitEnvironment>
pub fn generic_defaults(
&self,
key0: GenericDefId
) -> Arc<[Binders<Ty<Interner>>]>
&self,
key0: GenericDefId
) -> Arc<[Binders<Ty<Interner>>]>
pub fn inherent_impls_in_crate(&self, key0: CrateId) -> Arc<InherentImpls>
pub fn trait_impls_in_crate(&self, key0: CrateId) -> Arc<TraitImpls>
pub fn trait_impls_in_deps(&self, key0: CrateId) -> Arc<TraitImpls>
pub fn intern_callable_def(&self, key0: CallableDefId) -> InternedCallableDefId
pub fn lookup_intern_callable_def(
&self,
key0: InternedCallableDefId
) -> CallableDefId
&self,
key0: InternedCallableDefId
) -> CallableDefId
pub fn intern_type_param_id(&self, key0: TypeParamId) -> InternedTypeParamId
pub fn lookup_intern_type_param_id(
&self,
key0: InternedTypeParamId
) -> TypeParamId
&self,
key0: InternedTypeParamId
) -> TypeParamId
pub fn intern_lifetime_param_id(
&self,
key0: LifetimeParamId
) -> InternedLifetimeParamId
&self,
key0: LifetimeParamId
) -> InternedLifetimeParamId
pub fn lookup_intern_lifetime_param_id(
&self,
key0: InternedLifetimeParamId
) -> LifetimeParamId
&self,
key0: InternedLifetimeParamId
) -> LifetimeParamId
pub fn intern_const_param_id(&self, key0: ConstParamId) -> InternedConstParamId
pub fn lookup_intern_const_param_id(
&self,
key0: InternedConstParamId
) -> ConstParamId
&self,
key0: InternedConstParamId
) -> ConstParamId
pub fn intern_impl_trait_id(&self, key0: ImplTraitId) -> InternedOpaqueTyId
pub fn lookup_intern_impl_trait_id(
&self,
key0: InternedOpaqueTyId
) -> ImplTraitId
&self,
key0: InternedOpaqueTyId
) -> ImplTraitId
pub fn intern_closure(
&self,
key0: (DefWithBodyId, Idx<Expr>)
) -> InternedClosureId
&self,
key0: (DefWithBodyId, Idx<Expr>)
) -> InternedClosureId
pub fn lookup_intern_closure(
&self,
key0: InternedClosureId
) -> (DefWithBodyId, Idx<Expr>)
&self,
key0: InternedClosureId
) -> (DefWithBodyId, Idx<Expr>)
pub fn associated_ty_data(
&self,
key0: AssocTypeId<Interner>
) -> Arc<AssociatedTyDatum<Interner>>
&self,
key0: AssocTypeId<Interner>
) -> Arc<AssociatedTyDatum<Interner>>
pub fn trait_datum(
&self,
key0: CrateId,
key1: TraitId<Interner>
) -> Arc<TraitDatum<Interner>>
&self,
key0: CrateId,
key1: TraitId<Interner>
) -> Arc<TraitDatum<Interner>>
pub fn struct_datum(
&self,
key0: CrateId,
key1: AdtId<Interner>
) -> Arc<AdtDatum<Interner>>
&self,
key0: CrateId,
key1: AdtId<Interner>
) -> Arc<AdtDatum<Interner>>
pub fn impl_datum(
&self,
key0: CrateId,
key1: ImplId<Interner>
) -> Arc<ImplDatum<Interner>>
&self,
key0: CrateId,
key1: ImplId<Interner>
) -> Arc<ImplDatum<Interner>>
pub fn fn_def_datum(
&self,
key0: CrateId,
key1: FnDefId<Interner>
) -> Arc<FnDefDatum<Interner>>
&self,
key0: CrateId,
key1: FnDefId<Interner>
) -> Arc<FnDefDatum<Interner>>
pub fn fn_def_variance(&self, key0: FnDefId<Interner>) -> Variances<Interner>
pub fn adt_variance(&self, key0: AdtId<Interner>) -> Variances<Interner>
pub fn associated_ty_value(
&self,
key0: CrateId,
key1: AssociatedTyValueId<Interner>
) -> Arc<AssociatedTyValue<Interner>>
&self,
key0: CrateId,
key1: AssociatedTyValueId<Interner>
) -> Arc<AssociatedTyValue<Interner>>
pub fn trait_solve(
&self,
key0: CrateId,
key1: Canonical<InEnvironment<Goal<Interner>>>
) -> Option<Solution<Interner>>
&self,
key0: CrateId,
key1: Canonical<InEnvironment<Goal<Interner>>>
) -> Option<Solution<Interner>>
pub fn trait_solve_query(
&self,
key0: CrateId,
key1: Canonical<InEnvironment<Goal<Interner>>>
) -> Option<Solution<Interner>>
&self,
key0: CrateId,
key1: Canonical<InEnvironment<Goal<Interner>>>
) -> Option<Solution<Interner>>
pub fn program_clauses_for_chalk_env(
&self,
key0: CrateId,
key1: Environment<Interner>
) -> ProgramClauses<Interner>
&self,
key0: CrateId,
key1: Environment<Interner>
) -> ProgramClauses<Interner>
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<DB> InternDatabase for DB where
DB: SourceDatabase + Database + HasQueryGroup<InternDatabaseStorage>,
impl<DB> InternDatabase for DB where
DB: SourceDatabase + Database + HasQueryGroup<InternDatabaseStorage>,
pub fn intern_function(&self, key0: AssocItemLoc<Function>) -> FunctionId
pub fn lookup_intern_function(&self, key0: FunctionId) -> AssocItemLoc<Function>
pub fn intern_struct(&self, key0: ItemLoc<Struct>) -> StructId
pub fn lookup_intern_struct(&self, key0: StructId) -> ItemLoc<Struct>
pub fn intern_union(&self, key0: ItemLoc<Union>) -> UnionId
pub fn lookup_intern_union(&self, key0: UnionId) -> ItemLoc<Union>
pub fn intern_enum(&self, key0: ItemLoc<Enum>) -> EnumId
pub fn lookup_intern_enum(&self, key0: EnumId) -> ItemLoc<Enum>
pub fn intern_const(&self, key0: AssocItemLoc<Const>) -> ConstId
pub fn lookup_intern_const(&self, key0: ConstId) -> AssocItemLoc<Const>
pub fn intern_static(&self, key0: ItemLoc<Static>) -> StaticId
pub fn lookup_intern_static(&self, key0: StaticId) -> ItemLoc<Static>
pub fn intern_trait(&self, key0: ItemLoc<Trait>) -> TraitId
pub fn lookup_intern_trait(&self, key0: TraitId) -> ItemLoc<Trait>
pub fn intern_type_alias(&self, key0: AssocItemLoc<TypeAlias>) -> TypeAliasId
pub fn lookup_intern_type_alias(
&self,
key0: TypeAliasId
) -> AssocItemLoc<TypeAlias>
&self,
key0: TypeAliasId
) -> AssocItemLoc<TypeAlias>
pub fn intern_impl(&self, key0: ItemLoc<Impl>) -> ImplId
pub fn lookup_intern_impl(&self, key0: ImplId) -> ItemLoc<Impl>
pub fn intern_block(&self, key0: BlockLoc) -> BlockId
pub fn lookup_intern_block(&self, key0: BlockId) -> BlockLoc
impl<DB> LineIndexDatabase for DB where
DB: SourceDatabase + CheckCanceled + Database + HasQueryGroup<LineIndexDatabaseStorage>,
[src]
impl<DB> LineIndexDatabase for DB where
DB: SourceDatabase + CheckCanceled + Database + HasQueryGroup<LineIndexDatabaseStorage>,
[src]pub fn line_index(&Self, FileId) -> Arc<LineIndex>
[src]
impl<T> Pointable for T
impl<T> Pointable for T
impl<DB> SourceDatabase for DB where
DB: CheckCanceled + FileLoader + Debug + Database + HasQueryGroup<SourceDatabaseStorage>,
[src]
impl<DB> SourceDatabase for DB where
DB: CheckCanceled + FileLoader + Debug + Database + HasQueryGroup<SourceDatabaseStorage>,
[src]pub fn parse(&self, key0: FileId) -> Parse<SourceFile>
[src]
pub fn crate_graph(&self) -> Arc<CrateGraph>
[src]
pub fn crate_graph(&self) -> Arc<CrateGraph>
[src]The crate graph.
pub fn set_crate_graph(&mut self, value__: Arc<CrateGraph>)
[src]
pub fn set_crate_graph(&mut self, value__: Arc<CrateGraph>)
[src]Set the value of the crate_graph
input. Read more
pub fn set_crate_graph_with_durability(
&mut self,
value__: Arc<CrateGraph>,
durability__: Durability
)
[src]
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. Read more
impl<DB> SourceDatabaseExt for DB where
DB: SourceDatabase + Database + HasQueryGroup<SourceDatabaseExtStorage>,
[src]
impl<DB> SourceDatabaseExt for DB where
DB: SourceDatabase + Database + HasQueryGroup<SourceDatabaseExtStorage>,
[src]pub fn file_text(&self, key0: FileId) -> Arc<String>
[src]
pub fn set_file_text(&mut self, key0: FileId, value__: Arc<String>)
[src]
pub fn set_file_text(&mut self, key0: FileId, value__: Arc<String>)
[src]Set the value of the file_text
input. Read more
pub fn set_file_text_with_durability(
&mut self,
key0: FileId,
value__: Arc<String>,
durability__: Durability
)
[src]
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. Read more
pub fn file_source_root(&self, key0: FileId) -> SourceRootId
[src]
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. Read more
pub fn set_file_source_root(&mut self, key0: FileId, value__: SourceRootId)
[src]
pub fn set_file_source_root(&mut self, key0: FileId, value__: SourceRootId)
[src]Set the value of the file_source_root
input. Read more
pub fn set_file_source_root_with_durability(
&mut self,
key0: FileId,
value__: SourceRootId,
durability__: Durability
)
[src]
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. Read more
pub fn source_root(&self, key0: SourceRootId) -> Arc<SourceRoot>
[src]
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]
pub fn set_source_root(&mut self, key0: SourceRootId, value__: Arc<SourceRoot>)
[src]Set the value of the source_root
input. Read more
pub fn set_source_root_with_durability(
&mut self,
key0: SourceRootId,
value__: Arc<SourceRoot>,
durability__: Durability
)
[src]
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. Read more
pub fn source_root_crates(
&self,
key0: SourceRootId
) -> Arc<HashSet<CrateId, BuildHasherDefault<FxHasher>>>
[src]
&self,
key0: SourceRootId
) -> Arc<HashSet<CrateId, BuildHasherDefault<FxHasher>>>
impl<DB> SymbolsDatabase for DB where
DB: HirDatabase + SourceDatabaseExt + Database + HasQueryGroup<SymbolsDatabaseStorage>,
[src]
impl<DB> SymbolsDatabase for DB where
DB: HirDatabase + SourceDatabaseExt + Database + HasQueryGroup<SymbolsDatabaseStorage>,
[src]pub fn file_symbols(&Self, FileId) -> Arc<SymbolIndex>
[src]
pub fn library_symbols(
&Self
) -> Arc<HashMap<SourceRootId, SymbolIndex, BuildHasherDefault<FxHasher>>>
[src]
&Self
) -> Arc<HashMap<SourceRootId, SymbolIndex, BuildHasherDefault<FxHasher>>>
pub fn local_roots(
&Self
) -> Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
[src]
pub fn local_roots(
&Self
) -> Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
[src]The set of “local” (that is, from the current workspace) roots. Files in local roots are assumed to change frequently. Read more
pub fn set_local_roots(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
)
[src]
pub fn set_local_roots(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
)
[src]Set the value of the local_roots
input. Read more
pub fn set_local_roots_with_durability(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>,
Durability
)
[src]
pub fn set_local_roots_with_durability(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>,
Durability
)
[src]Set the value of the local_roots
input and promise
that its value will never change again. Read more
pub fn library_roots(
&Self
) -> Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
[src]
pub fn library_roots(
&Self
) -> Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
[src]The set of roots for crates.io libraries. Files in libraries are assumed to never change. Read more
pub fn set_library_roots(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
)
[src]
pub fn set_library_roots(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>
)
[src]Set the value of the library_roots
input. Read more
pub fn set_library_roots_with_durability(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>,
Durability
)
[src]
pub fn set_library_roots_with_durability(
&mut Self,
Arc<HashSet<SourceRootId, BuildHasherDefault<FxHasher>>>,
Durability
)
[src]Set the value of the library_roots
input and promise
that its value will never change again. Read more
impl<DB> WithFixture for DB where
DB: 'static + SourceDatabaseExt + Default,
[src]
impl<DB> WithFixture for DB where
DB: 'static + SourceDatabaseExt + Default,
[src]fn with_single_file(text: &str) -> (Self, FileId)
[src]
fn with_files(ra_fixture: &str) -> Self
[src]
fn with_position(ra_fixture: &str) -> (Self, FilePosition)
[src]
fn with_range(ra_fixture: &str) -> (Self, FileRange)
[src]
fn with_range_or_offset(ra_fixture: &str) -> (Self, FileId, RangeOrOffset)
[src]
fn test_crate(&self) -> CrateId
[src]
impl<T> Any for T where
T: Any,
T: Any,