pub trait InternDatabase: Database + HasQueryGroup<InternDatabaseStorage> + SourceDatabase {
    fn intern_function(&self, key0: AssocItemLoc<Function>) -> FunctionId;
    fn lookup_intern_function(&self, key0: FunctionId) -> AssocItemLoc<Function>;
    fn intern_struct(&self, key0: AssocItemLoc<Struct>) -> StructId;
    fn lookup_intern_struct(&self, key0: StructId) -> AssocItemLoc<Struct>;
    fn intern_type_alias(&self, key0: AssocItemLoc<TypeAlias>) -> TypeAliasId;
    fn lookup_intern_type_alias(
        &self,
        key0: TypeAliasId
    ) -> AssocItemLoc<TypeAlias>; }
Expand description

The InternDatabase maps certain datastructures to ids. These ids refer to instances of concepts like a Function, Struct or TypeAlias in a semi-stable way.

Required Methods§

Implementors§