Trait hir_def::db::InternDatabase[][src]

pub trait InternDatabase: Database + HasQueryGroup<InternDatabaseStorage> + SourceDatabase {
Show 20 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: 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_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_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_block(&self, loc: BlockLoc) -> BlockId;
fn lookup_intern_block(&self, key: BlockId) -> BlockLoc;
}

Required methods

Implementors