Trait hir::db::InternDatabase[][src]

pub trait InternDatabase: Database + HasQueryGroup<InternDatabaseStorage> + SourceDatabase {
Show 22 methods 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: ItemLoc<Union>) -> UnionId;
fn lookup_intern_union(&self, key: UnionId) -> ItemLoc<Union>;
fn intern_enum(&self, loc: ItemLoc<Enum>) -> EnumId;
fn lookup_intern_enum(&self, key: EnumId) -> ItemLoc<Enum>;
fn intern_const(&self, loc: AssocItemLoc<Const>) -> ConstId;
fn lookup_intern_const(&self, key: ConstId) -> AssocItemLoc<Const>;
fn intern_static(&self, loc: AssocItemLoc<Static>) -> StaticId;
fn lookup_intern_static(&self, key: StaticId) -> AssocItemLoc<Static>;
fn intern_trait(&self, loc: ItemLoc<Trait>) -> TraitId;
fn lookup_intern_trait(&self, key: TraitId) -> ItemLoc<Trait>;
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_block(&self, loc: BlockLoc) -> BlockId;
fn lookup_intern_block(&self, key: BlockId) -> BlockLoc;
}

Required methods

Implementors