hir_def::db

Trait InternDatabase

source
pub trait InternDatabase:
    Database
    + HasQueryGroup<InternDatabaseStorage>
    + SourceDatabase {
Show 40 methods // Required methods fn intern_use(&self, loc: ItemLoc<Use>) -> UseId; fn lookup_intern_use(&self, key: UseId) -> ItemLoc<Use>; fn intern_extern_crate(&self, loc: ItemLoc<ExternCrate>) -> ExternCrateId; fn lookup_intern_extern_crate( &self, key: ExternCrateId, ) -> ItemLoc<ExternCrate>; fn intern_function(&self, loc: AssocItemLoc<Function>) -> FunctionId; fn lookup_intern_function(&self, key: FunctionId) -> AssocItemLoc<Function>; fn intern_struct(&self, loc: ItemLoc<Struct>) -> StructId; fn lookup_intern_struct(&self, key: StructId) -> ItemLoc<Struct>; fn intern_union(&self, loc: UnionLoc) -> UnionId; fn lookup_intern_union(&self, key: UnionId) -> UnionLoc; fn intern_enum(&self, loc: EnumLoc) -> EnumId; fn lookup_intern_enum(&self, key: EnumId) -> EnumLoc; fn intern_enum_variant(&self, loc: EnumVariantLoc) -> EnumVariantId; fn lookup_intern_enum_variant(&self, key: EnumVariantId) -> EnumVariantLoc; fn intern_const(&self, loc: AssocItemLoc<Const>) -> ConstId; fn lookup_intern_const(&self, key: ConstId) -> AssocItemLoc<Const>; fn intern_static(&self, loc: StaticLoc) -> StaticId; fn lookup_intern_static(&self, key: StaticId) -> StaticLoc; fn intern_trait(&self, loc: TraitLoc) -> TraitId; fn lookup_intern_trait(&self, key: TraitId) -> TraitLoc; fn intern_trait_alias(&self, loc: TraitAliasLoc) -> TraitAliasId; fn lookup_intern_trait_alias(&self, key: TraitAliasId) -> TraitAliasLoc; fn intern_type_alias(&self, loc: AssocItemLoc<TypeAlias>) -> TypeAliasId; fn lookup_intern_type_alias( &self, key: TypeAliasId, ) -> AssocItemLoc<TypeAlias>; fn intern_impl(&self, loc: ItemLoc<Impl>) -> ImplId; fn lookup_intern_impl(&self, key: ImplId) -> ItemLoc<Impl>; fn intern_extern_block(&self, loc: ItemLoc<ExternBlock>) -> ExternBlockId; fn lookup_intern_extern_block( &self, key: ExternBlockId, ) -> ItemLoc<ExternBlock>; fn intern_macro2(&self, loc: Macro2Loc) -> Macro2Id; fn lookup_intern_macro2(&self, key: Macro2Id) -> Macro2Loc; fn intern_proc_macro(&self, loc: ProcMacroLoc) -> ProcMacroId; fn lookup_intern_proc_macro(&self, key: ProcMacroId) -> ProcMacroLoc; fn intern_macro_rules(&self, loc: MacroRulesLoc) -> MacroRulesId; fn lookup_intern_macro_rules(&self, key: MacroRulesId) -> MacroRulesLoc; fn intern_block(&self, loc: BlockLoc) -> BlockId; fn lookup_intern_block(&self, key: BlockId) -> BlockLoc; fn intern_anonymous_const(&self, id: ConstBlockLoc) -> ConstBlockId; fn lookup_intern_anonymous_const(&self, key: ConstBlockId) -> ConstBlockLoc; fn intern_in_type_const(&self, id: InTypeConstLoc) -> InTypeConstId; fn lookup_intern_in_type_const(&self, key: InTypeConstId) -> InTypeConstLoc;
}

Required Methods§

source

fn intern_use(&self, loc: ItemLoc<Use>) -> UseId

source

fn lookup_intern_use(&self, key: UseId) -> ItemLoc<Use>

source

fn intern_extern_crate(&self, loc: ItemLoc<ExternCrate>) -> ExternCrateId

source

fn lookup_intern_extern_crate(&self, key: ExternCrateId) -> ItemLoc<ExternCrate>

source

fn intern_function(&self, loc: AssocItemLoc<Function>) -> FunctionId

source

fn lookup_intern_function(&self, key: FunctionId) -> AssocItemLoc<Function>

source

fn intern_struct(&self, loc: ItemLoc<Struct>) -> StructId

source

fn lookup_intern_struct(&self, key: StructId) -> ItemLoc<Struct>

source

fn intern_union(&self, loc: UnionLoc) -> UnionId

source

fn lookup_intern_union(&self, key: UnionId) -> UnionLoc

source

fn intern_enum(&self, loc: EnumLoc) -> EnumId

source

fn lookup_intern_enum(&self, key: EnumId) -> EnumLoc

source

fn intern_enum_variant(&self, loc: EnumVariantLoc) -> EnumVariantId

source

fn lookup_intern_enum_variant(&self, key: EnumVariantId) -> EnumVariantLoc

source

fn intern_const(&self, loc: AssocItemLoc<Const>) -> ConstId

source

fn lookup_intern_const(&self, key: ConstId) -> AssocItemLoc<Const>

source

fn intern_static(&self, loc: StaticLoc) -> StaticId

source

fn lookup_intern_static(&self, key: StaticId) -> StaticLoc

source

fn intern_trait(&self, loc: TraitLoc) -> TraitId

source

fn lookup_intern_trait(&self, key: TraitId) -> TraitLoc

source

fn intern_trait_alias(&self, loc: TraitAliasLoc) -> TraitAliasId

source

fn lookup_intern_trait_alias(&self, key: TraitAliasId) -> TraitAliasLoc

source

fn intern_type_alias(&self, loc: AssocItemLoc<TypeAlias>) -> TypeAliasId

source

fn lookup_intern_type_alias(&self, key: TypeAliasId) -> AssocItemLoc<TypeAlias>

source

fn intern_impl(&self, loc: ItemLoc<Impl>) -> ImplId

source

fn lookup_intern_impl(&self, key: ImplId) -> ItemLoc<Impl>

source

fn intern_extern_block(&self, loc: ItemLoc<ExternBlock>) -> ExternBlockId

source

fn lookup_intern_extern_block(&self, key: ExternBlockId) -> ItemLoc<ExternBlock>

source

fn intern_macro2(&self, loc: Macro2Loc) -> Macro2Id

source

fn lookup_intern_macro2(&self, key: Macro2Id) -> Macro2Loc

source

fn intern_proc_macro(&self, loc: ProcMacroLoc) -> ProcMacroId

source

fn lookup_intern_proc_macro(&self, key: ProcMacroId) -> ProcMacroLoc

source

fn intern_macro_rules(&self, loc: MacroRulesLoc) -> MacroRulesId

source

fn lookup_intern_macro_rules(&self, key: MacroRulesId) -> MacroRulesLoc

source

fn intern_block(&self, loc: BlockLoc) -> BlockId

source

fn lookup_intern_block(&self, key: BlockId) -> BlockLoc

source

fn intern_anonymous_const(&self, id: ConstBlockLoc) -> ConstBlockId

source

fn lookup_intern_anonymous_const(&self, key: ConstBlockId) -> ConstBlockLoc

source

fn intern_in_type_const(&self, id: InTypeConstLoc) -> InTypeConstId

source

fn lookup_intern_in_type_const(&self, key: InTypeConstId) -> InTypeConstLoc

Implementors§

source§

impl<DB> InternDatabase for DB
where DB: SourceDatabase + Database + HasQueryGroup<InternDatabaseStorage>,