Trait InternDatabase

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

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§

Source§

impl<DB> InternDatabase for DB
where DB: RootQueryDb,