cairo_lang_defs::db

Trait DefsGroup

Source
pub trait DefsGroup:
    Database
    + HasQueryGroup<DefsDatabase>
    + FilesGroup
    + SyntaxGroup
    + Upcast<dyn SyntaxGroup>
    + ParserGroup
    + Upcast<dyn FilesGroup> {
Show 111 methods // Required methods fn intern_constant(&self, id: ConstantLongId) -> ConstantId; fn lookup_intern_constant(&self, key: ConstantId) -> ConstantLongId; fn intern_submodule(&self, id: SubmoduleLongId) -> SubmoduleId; fn lookup_intern_submodule(&self, key: SubmoduleId) -> SubmoduleLongId; fn intern_use(&self, id: UseLongId) -> UseId; fn lookup_intern_use(&self, key: UseId) -> UseLongId; fn intern_free_function(&self, id: FreeFunctionLongId) -> FreeFunctionId; fn lookup_intern_free_function( &self, key: FreeFunctionId, ) -> FreeFunctionLongId; fn intern_impl_type_def(&self, id: ImplTypeDefLongId) -> ImplTypeDefId; fn lookup_intern_impl_type_def( &self, key: ImplTypeDefId, ) -> ImplTypeDefLongId; fn intern_impl_constant_def( &self, id: ImplConstantDefLongId, ) -> ImplConstantDefId; fn lookup_intern_impl_constant_def( &self, key: ImplConstantDefId, ) -> ImplConstantDefLongId; fn intern_impl_impl_def(&self, id: ImplImplDefLongId) -> ImplImplDefId; fn lookup_intern_impl_impl_def( &self, key: ImplImplDefId, ) -> ImplImplDefLongId; fn intern_impl_function(&self, id: ImplFunctionLongId) -> ImplFunctionId; fn lookup_intern_impl_function( &self, key: ImplFunctionId, ) -> ImplFunctionLongId; fn intern_struct(&self, id: StructLongId) -> StructId; fn lookup_intern_struct(&self, key: StructId) -> StructLongId; fn intern_enum(&self, id: EnumLongId) -> EnumId; fn lookup_intern_enum(&self, key: EnumId) -> EnumLongId; fn intern_module_type_alias( &self, id: ModuleTypeAliasLongId, ) -> ModuleTypeAliasId; fn lookup_intern_module_type_alias( &self, key: ModuleTypeAliasId, ) -> ModuleTypeAliasLongId; fn intern_impl_alias(&self, id: ImplAliasLongId) -> ImplAliasId; fn lookup_intern_impl_alias(&self, key: ImplAliasId) -> ImplAliasLongId; fn intern_member(&self, id: MemberLongId) -> MemberId; fn lookup_intern_member(&self, key: MemberId) -> MemberLongId; fn intern_variant(&self, id: VariantLongId) -> VariantId; fn lookup_intern_variant(&self, key: VariantId) -> VariantLongId; fn intern_trait(&self, id: TraitLongId) -> TraitId; fn lookup_intern_trait(&self, key: TraitId) -> TraitLongId; fn intern_trait_type(&self, id: TraitTypeLongId) -> TraitTypeId; fn lookup_intern_trait_type(&self, key: TraitTypeId) -> TraitTypeLongId; fn intern_trait_constant(&self, id: TraitConstantLongId) -> TraitConstantId; fn lookup_intern_trait_constant( &self, key: TraitConstantId, ) -> TraitConstantLongId; fn intern_trait_impl(&self, id: TraitImplLongId) -> TraitImplId; fn lookup_intern_trait_impl(&self, key: TraitImplId) -> TraitImplLongId; fn intern_trait_function(&self, id: TraitFunctionLongId) -> TraitFunctionId; fn lookup_intern_trait_function( &self, key: TraitFunctionId, ) -> TraitFunctionLongId; fn intern_impl_def(&self, id: ImplDefLongId) -> ImplDefId; fn lookup_intern_impl_def(&self, key: ImplDefId) -> ImplDefLongId; fn intern_extern_type(&self, id: ExternTypeLongId) -> ExternTypeId; fn lookup_intern_extern_type(&self, key: ExternTypeId) -> ExternTypeLongId; fn intern_extern_function( &self, id: ExternFunctionLongId, ) -> ExternFunctionId; fn lookup_intern_extern_function( &self, key: ExternFunctionId, ) -> ExternFunctionLongId; fn intern_param(&self, id: ParamLongId) -> ParamId; fn lookup_intern_param(&self, key: ParamId) -> ParamLongId; fn intern_generic_param(&self, id: GenericParamLongId) -> GenericParamId; fn lookup_intern_generic_param( &self, key: GenericParamId, ) -> GenericParamLongId; fn intern_local_var(&self, id: LocalVarLongId) -> LocalVarId; fn lookup_intern_local_var(&self, key: LocalVarId) -> LocalVarLongId; fn intern_plugin_generated_file( &self, id: PluginGeneratedFileLongId, ) -> PluginGeneratedFileId; fn lookup_intern_plugin_generated_file( &self, key: PluginGeneratedFileId, ) -> PluginGeneratedFileLongId; fn macro_plugins(&self) -> Vec<Arc<dyn MacroPlugin>>; fn set_macro_plugins(&mut self, value__: Vec<Arc<dyn MacroPlugin>>); fn set_macro_plugins_with_durability( &mut self, value__: Vec<Arc<dyn MacroPlugin>>, durability__: Durability, ); fn inline_macro_plugins( &self, ) -> Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>; fn set_inline_macro_plugins( &mut self, value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>, ); fn set_inline_macro_plugins_with_durability( &mut self, value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>, durability__: Durability, ); fn allowed_attributes(&self) -> Arc<OrderedHashSet<String>>; fn allowed_statement_attributes(&self) -> Arc<OrderedHashSet<String>>; fn declared_derives(&self) -> Arc<OrderedHashSet<String>>; fn declared_phantom_type_attributes(&self) -> Arc<OrderedHashSet<String>>; fn module_main_file(&self, module_id: ModuleId) -> Maybe<FileId>; fn module_files(&self, module_id: ModuleId) -> Maybe<Arc<[FileId]>>; fn module_file(&self, module_id: ModuleFileId) -> Maybe<FileId>; fn module_dir(&self, module_id: ModuleId) -> Maybe<Directory>; fn crate_modules(&self, crate_id: CrateId) -> Arc<[ModuleId]>; fn priv_file_to_module_mapping( &self, ) -> Arc<OrderedHashMap<FileId, Vec<ModuleId>>>; fn file_modules(&self, file_id: FileId) -> Maybe<Arc<[ModuleId]>>; fn priv_module_data(&self, module_id: ModuleId) -> Maybe<ModuleData>; fn priv_module_sub_files( &self, module_id: ModuleId, file_id: FileId, ) -> Maybe<Arc<PrivModuleSubFiles>>; fn module_submodules( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<SubmoduleId, ItemModule>>>; fn module_submodules_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[SubmoduleId]>>; fn module_constants( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ConstantId, ItemConstant>>>; fn module_constants_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ConstantId]>>; fn module_constant_by_id( &self, constant_id: ConstantId, ) -> Maybe<Option<ItemConstant>>; fn module_free_functions( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<FreeFunctionId, FunctionWithBody>>>; fn module_free_functions_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[FreeFunctionId]>>; fn module_free_function_by_id( &self, free_function_id: FreeFunctionId, ) -> Maybe<Option<FunctionWithBody>>; fn module_items(&self, module_id: ModuleId) -> Maybe<Arc<[ModuleItemId]>>; fn module_item_name_stable_ptr( &self, module_id: ModuleId, item_id: ModuleItemId, ) -> Maybe<SyntaxStablePtrId>; fn module_uses( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<UseId, UsePathLeaf>>>; fn module_uses_ids(&self, module_id: ModuleId) -> Maybe<Arc<[UseId]>>; fn module_use_by_id(&self, use_id: UseId) -> Maybe<Option<UsePathLeaf>>; fn module_structs( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<StructId, ItemStruct>>>; fn module_structs_ids(&self, module_id: ModuleId) -> Maybe<Arc<[StructId]>>; fn module_struct_by_id( &self, struct_id: StructId, ) -> Maybe<Option<ItemStruct>>; fn module_enums( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<EnumId, ItemEnum>>>; fn module_enums_ids(&self, module_id: ModuleId) -> Maybe<Arc<[EnumId]>>; fn module_enum_by_id(&self, enum_id: EnumId) -> Maybe<Option<ItemEnum>>; fn module_type_aliases( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ModuleTypeAliasId, ItemTypeAlias>>>; fn module_type_aliases_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ModuleTypeAliasId]>>; fn module_type_alias_by_id( &self, module_type_alias_id: ModuleTypeAliasId, ) -> Maybe<Option<ItemTypeAlias>>; fn module_impl_aliases( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ImplAliasId, ItemImplAlias>>>; fn module_impl_aliases_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ImplAliasId]>>; fn module_impl_alias_by_id( &self, impl_alias_id: ImplAliasId, ) -> Maybe<Option<ItemImplAlias>>; fn module_traits( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<TraitId, ItemTrait>>>; fn module_traits_ids(&self, module_id: ModuleId) -> Maybe<Arc<[TraitId]>>; fn module_trait_by_id(&self, trait_id: TraitId) -> Maybe<Option<ItemTrait>>; fn module_impls( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ImplDefId, ItemImpl>>>; fn module_impls_ids(&self, module_id: ModuleId) -> Maybe<Arc<[ImplDefId]>>; fn module_impl_by_id(&self, impl_id: ImplDefId) -> Maybe<Option<ItemImpl>>; fn module_extern_types( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ExternTypeId, ItemExternType>>>; fn module_extern_types_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ExternTypeId]>>; fn module_extern_type_by_id( &self, extern_type_id: ExternTypeId, ) -> Maybe<Option<ItemExternType>>; fn module_extern_functions( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ExternFunctionId, ItemExternFunction>>>; fn module_extern_functions_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ExternFunctionId]>>; fn module_extern_function_by_id( &self, extern_function_id: ExternFunctionId, ) -> Maybe<Option<ItemExternFunction>>; fn module_ancestors(&self, module_id: ModuleId) -> OrderedHashSet<ModuleId>; fn module_generated_file_aux_data( &self, module_id: ModuleId, ) -> Maybe<Arc<[Option<DynGeneratedFileAuxData>]>>; fn module_plugin_diagnostics( &self, module_id: ModuleId, ) -> Maybe<Arc<[(ModuleFileId, PluginDiagnostic)]>>;
}
Expand description

Salsa database interface. See super::ids for further details.

Required Methods§

Source

fn intern_constant(&self, id: ConstantLongId) -> ConstantId

Source

fn lookup_intern_constant(&self, key: ConstantId) -> ConstantLongId

Source

fn intern_submodule(&self, id: SubmoduleLongId) -> SubmoduleId

Source

fn lookup_intern_submodule(&self, key: SubmoduleId) -> SubmoduleLongId

Source

fn intern_use(&self, id: UseLongId) -> UseId

Source

fn lookup_intern_use(&self, key: UseId) -> UseLongId

Source

fn intern_free_function(&self, id: FreeFunctionLongId) -> FreeFunctionId

Source

fn lookup_intern_free_function(&self, key: FreeFunctionId) -> FreeFunctionLongId

Source

fn intern_impl_type_def(&self, id: ImplTypeDefLongId) -> ImplTypeDefId

Source

fn lookup_intern_impl_type_def(&self, key: ImplTypeDefId) -> ImplTypeDefLongId

Source

fn intern_impl_constant_def( &self, id: ImplConstantDefLongId, ) -> ImplConstantDefId

Source

fn lookup_intern_impl_constant_def( &self, key: ImplConstantDefId, ) -> ImplConstantDefLongId

Source

fn intern_impl_impl_def(&self, id: ImplImplDefLongId) -> ImplImplDefId

Source

fn lookup_intern_impl_impl_def(&self, key: ImplImplDefId) -> ImplImplDefLongId

Source

fn intern_impl_function(&self, id: ImplFunctionLongId) -> ImplFunctionId

Source

fn lookup_intern_impl_function(&self, key: ImplFunctionId) -> ImplFunctionLongId

Source

fn intern_struct(&self, id: StructLongId) -> StructId

Source

fn lookup_intern_struct(&self, key: StructId) -> StructLongId

Source

fn intern_enum(&self, id: EnumLongId) -> EnumId

Source

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

Source

fn intern_module_type_alias( &self, id: ModuleTypeAliasLongId, ) -> ModuleTypeAliasId

Source

fn lookup_intern_module_type_alias( &self, key: ModuleTypeAliasId, ) -> ModuleTypeAliasLongId

Source

fn intern_impl_alias(&self, id: ImplAliasLongId) -> ImplAliasId

Source

fn lookup_intern_impl_alias(&self, key: ImplAliasId) -> ImplAliasLongId

Source

fn intern_member(&self, id: MemberLongId) -> MemberId

Source

fn lookup_intern_member(&self, key: MemberId) -> MemberLongId

Source

fn intern_variant(&self, id: VariantLongId) -> VariantId

Source

fn lookup_intern_variant(&self, key: VariantId) -> VariantLongId

Source

fn intern_trait(&self, id: TraitLongId) -> TraitId

Source

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

Source

fn intern_trait_type(&self, id: TraitTypeLongId) -> TraitTypeId

Source

fn lookup_intern_trait_type(&self, key: TraitTypeId) -> TraitTypeLongId

Source

fn intern_trait_constant(&self, id: TraitConstantLongId) -> TraitConstantId

Source

fn lookup_intern_trait_constant( &self, key: TraitConstantId, ) -> TraitConstantLongId

Source

fn intern_trait_impl(&self, id: TraitImplLongId) -> TraitImplId

Source

fn lookup_intern_trait_impl(&self, key: TraitImplId) -> TraitImplLongId

Source

fn intern_trait_function(&self, id: TraitFunctionLongId) -> TraitFunctionId

Source

fn lookup_intern_trait_function( &self, key: TraitFunctionId, ) -> TraitFunctionLongId

Source

fn intern_impl_def(&self, id: ImplDefLongId) -> ImplDefId

Source

fn lookup_intern_impl_def(&self, key: ImplDefId) -> ImplDefLongId

Source

fn intern_extern_type(&self, id: ExternTypeLongId) -> ExternTypeId

Source

fn lookup_intern_extern_type(&self, key: ExternTypeId) -> ExternTypeLongId

Source

fn intern_extern_function(&self, id: ExternFunctionLongId) -> ExternFunctionId

Source

fn lookup_intern_extern_function( &self, key: ExternFunctionId, ) -> ExternFunctionLongId

Source

fn intern_param(&self, id: ParamLongId) -> ParamId

Source

fn lookup_intern_param(&self, key: ParamId) -> ParamLongId

Source

fn intern_generic_param(&self, id: GenericParamLongId) -> GenericParamId

Source

fn lookup_intern_generic_param(&self, key: GenericParamId) -> GenericParamLongId

Source

fn intern_local_var(&self, id: LocalVarLongId) -> LocalVarId

Source

fn lookup_intern_local_var(&self, key: LocalVarId) -> LocalVarLongId

Source

fn intern_plugin_generated_file( &self, id: PluginGeneratedFileLongId, ) -> PluginGeneratedFileId

Source

fn lookup_intern_plugin_generated_file( &self, key: PluginGeneratedFileId, ) -> PluginGeneratedFileLongId

Source

fn macro_plugins(&self) -> Vec<Arc<dyn MacroPlugin>>

Source

fn set_macro_plugins(&mut self, value__: Vec<Arc<dyn MacroPlugin>>)

Set the value of the macro_plugins input.

See macro_plugins for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

Source

fn set_macro_plugins_with_durability( &mut self, value__: Vec<Arc<dyn MacroPlugin>>, durability__: Durability, )

Set the value of the macro_plugins input with a specific durability instead of the default of Durability::LOW. You can use Durability::MAX to promise that its value will never change again.

See macro_plugins for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

Source

fn inline_macro_plugins( &self, ) -> Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>

Source

fn set_inline_macro_plugins( &mut self, value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>, )

Set the value of the inline_macro_plugins input.

See inline_macro_plugins for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

Source

fn set_inline_macro_plugins_with_durability( &mut self, value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>, durability__: Durability, )

Set the value of the inline_macro_plugins input with a specific durability instead of the default of Durability::LOW. You can use Durability::MAX to promise that its value will never change again.

See inline_macro_plugins for details.

Note: Setting values will trigger cancellation of any ongoing queries; this method blocks until those queries have been cancelled.

Source

fn allowed_attributes(&self) -> Arc<OrderedHashSet<String>>

Returns the set of attributes allowed anywhere. An attribute on any item that is not in this set will be handled as an unknown attribute.

Source

fn allowed_statement_attributes(&self) -> Arc<OrderedHashSet<String>>

Returns the set of attributes allowed on statements. An attribute on a statement that is not in this set will be handled as an unknown attribute.

Source

fn declared_derives(&self) -> Arc<OrderedHashSet<String>>

Returns the set of derive that were declared as by a plugin. A derive that is not in this set will be handled as an unknown derive.

Source

fn declared_phantom_type_attributes(&self) -> Arc<OrderedHashSet<String>>

Returns the set of attributes that were declared as phantom type attributes by a plugin, i.e. a type marked with this attribute is considered a phantom type.

Source

fn module_main_file(&self, module_id: ModuleId) -> Maybe<FileId>

Gets the main file of the module. A module might have more virtual files generated by plugins.

Source

fn module_files(&self, module_id: ModuleId) -> Maybe<Arc<[FileId]>>

Gets all the files of a module - main files and generated virtual files.

Source

fn module_file(&self, module_id: ModuleFileId) -> Maybe<FileId>

Gets a file from a module and a FileIndex (i.e. ModuleFileId).

Source

fn module_dir(&self, module_id: ModuleId) -> Maybe<Directory>

Gets the directory of a module.

Source

fn crate_modules(&self, crate_id: CrateId) -> Arc<[ModuleId]>

Source

fn priv_file_to_module_mapping( &self, ) -> Arc<OrderedHashMap<FileId, Vec<ModuleId>>>

Source

fn file_modules(&self, file_id: FileId) -> Maybe<Arc<[ModuleId]>>

Source

fn priv_module_data(&self, module_id: ModuleId) -> Maybe<ModuleData>

Source

fn priv_module_sub_files( &self, module_id: ModuleId, file_id: FileId, ) -> Maybe<Arc<PrivModuleSubFiles>>

Source

fn module_submodules( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<SubmoduleId, ItemModule>>>

Source

fn module_submodules_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[SubmoduleId]>>

Source

fn module_constants( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ConstantId, ItemConstant>>>

Source

fn module_constants_ids(&self, module_id: ModuleId) -> Maybe<Arc<[ConstantId]>>

Source

fn module_constant_by_id( &self, constant_id: ConstantId, ) -> Maybe<Option<ItemConstant>>

Source

fn module_free_functions( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<FreeFunctionId, FunctionWithBody>>>

Source

fn module_free_functions_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[FreeFunctionId]>>

Source

fn module_free_function_by_id( &self, free_function_id: FreeFunctionId, ) -> Maybe<Option<FunctionWithBody>>

Source

fn module_items(&self, module_id: ModuleId) -> Maybe<Arc<[ModuleItemId]>>

Source

fn module_item_name_stable_ptr( &self, module_id: ModuleId, item_id: ModuleItemId, ) -> Maybe<SyntaxStablePtrId>

Returns the stable ptr of the name of a module item.

Source

fn module_uses( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<UseId, UsePathLeaf>>>

Source

fn module_uses_ids(&self, module_id: ModuleId) -> Maybe<Arc<[UseId]>>

Source

fn module_use_by_id(&self, use_id: UseId) -> Maybe<Option<UsePathLeaf>>

Source

fn module_structs( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<StructId, ItemStruct>>>

Source

fn module_structs_ids(&self, module_id: ModuleId) -> Maybe<Arc<[StructId]>>

Source

fn module_struct_by_id(&self, struct_id: StructId) -> Maybe<Option<ItemStruct>>

Source

fn module_enums( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<EnumId, ItemEnum>>>

Source

fn module_enums_ids(&self, module_id: ModuleId) -> Maybe<Arc<[EnumId]>>

Source

fn module_enum_by_id(&self, enum_id: EnumId) -> Maybe<Option<ItemEnum>>

Source

fn module_type_aliases( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ModuleTypeAliasId, ItemTypeAlias>>>

Source

fn module_type_aliases_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ModuleTypeAliasId]>>

Source

fn module_type_alias_by_id( &self, module_type_alias_id: ModuleTypeAliasId, ) -> Maybe<Option<ItemTypeAlias>>

Source

fn module_impl_aliases( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ImplAliasId, ItemImplAlias>>>

Source

fn module_impl_aliases_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ImplAliasId]>>

Source

fn module_impl_alias_by_id( &self, impl_alias_id: ImplAliasId, ) -> Maybe<Option<ItemImplAlias>>

Source

fn module_traits( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<TraitId, ItemTrait>>>

Source

fn module_traits_ids(&self, module_id: ModuleId) -> Maybe<Arc<[TraitId]>>

Source

fn module_trait_by_id(&self, trait_id: TraitId) -> Maybe<Option<ItemTrait>>

Source

fn module_impls( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ImplDefId, ItemImpl>>>

Source

fn module_impls_ids(&self, module_id: ModuleId) -> Maybe<Arc<[ImplDefId]>>

Source

fn module_impl_by_id(&self, impl_id: ImplDefId) -> Maybe<Option<ItemImpl>>

Source

fn module_extern_types( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ExternTypeId, ItemExternType>>>

Source

fn module_extern_types_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ExternTypeId]>>

Source

fn module_extern_type_by_id( &self, extern_type_id: ExternTypeId, ) -> Maybe<Option<ItemExternType>>

Source

fn module_extern_functions( &self, module_id: ModuleId, ) -> Maybe<Arc<OrderedHashMap<ExternFunctionId, ItemExternFunction>>>

Source

fn module_extern_functions_ids( &self, module_id: ModuleId, ) -> Maybe<Arc<[ExternFunctionId]>>

Source

fn module_extern_function_by_id( &self, extern_function_id: ExternFunctionId, ) -> Maybe<Option<ItemExternFunction>>

Source

fn module_ancestors(&self, module_id: ModuleId) -> OrderedHashSet<ModuleId>

Source

fn module_generated_file_aux_data( &self, module_id: ModuleId, ) -> Maybe<Arc<[Option<DynGeneratedFileAuxData>]>>

Source

fn module_plugin_diagnostics( &self, module_id: ModuleId, ) -> Maybe<Arc<[(ModuleFileId, PluginDiagnostic)]>>

Trait Implementations§

Source§

impl DebugWithDb<dyn DefsGroup> for GenericParamLongId

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &dyn DefsGroup) -> Result

Source§

fn debug<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

fn into_debug<'me, 'db>(self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

impl DebugWithDb<dyn DefsGroup> for LocalVarLongId

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &dyn DefsGroup) -> Result

Source§

fn debug<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

fn into_debug<'me, 'db>(self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

impl DebugWithDb<dyn DefsGroup> for ModuleId

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &dyn DefsGroup) -> Result

Source§

fn debug<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

fn into_debug<'me, 'db>(self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

impl DebugWithDb<dyn DefsGroup> for StableLocation

Source§

fn fmt(&self, f: &mut Formatter<'_>, db: &dyn DefsGroup) -> Result

Source§

fn debug<'me, 'db>(&'me self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

fn into_debug<'me, 'db>(self, db: &'me Db) -> DebugWith<'me, Db>
where Self: Sized + 'me,

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ConstantId> for ConstantLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> ConstantId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, EnumId> for EnumLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> EnumId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ExternFunctionId> for ExternFunctionLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ExternFunctionId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ExternTypeId> for ExternTypeLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> ExternTypeId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, FreeFunctionId> for FreeFunctionLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> FreeFunctionId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, GenericParamId> for GenericParamLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> GenericParamId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ImplAliasId> for ImplAliasLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> ImplAliasId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ImplConstantDefId> for ImplConstantDefLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplConstantDefId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ImplDefId> for ImplDefLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> ImplDefId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ImplFunctionId> for ImplFunctionLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplFunctionId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ImplImplDefId> for ImplImplDefLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplImplDefId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ImplTypeDefId> for ImplTypeDefLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplTypeDefId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, LocalVarId> for LocalVarLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> LocalVarId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, MemberId> for MemberLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> MemberId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ModuleTypeAliasId> for ModuleTypeAliasLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ModuleTypeAliasId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, ParamId> for ParamLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> ParamId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, PluginGeneratedFileId> for PluginGeneratedFileLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> PluginGeneratedFileId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, StructId> for StructLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> StructId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, SubmoduleId> for SubmoduleLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> SubmoduleId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, TraitConstantId> for TraitConstantLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitConstantId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, TraitFunctionId> for TraitFunctionLongId

Source§

fn intern( self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitFunctionId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, TraitId> for TraitLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> TraitId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, TraitImplId> for TraitImplLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> TraitImplId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, TraitTypeId> for TraitTypeLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> TraitTypeId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, UseId> for UseLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> UseId

Source§

impl<'a> Intern<'a, dyn DefsGroup + 'a, VariantId> for VariantLongId

Source§

fn intern(self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized)) -> VariantId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ConstantLongId> for ConstantId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ConstantLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, EnumLongId> for EnumId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> EnumLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ExternFunctionLongId> for ExternFunctionId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ExternFunctionLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ExternTypeLongId> for ExternTypeId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ExternTypeLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, FreeFunctionLongId> for FreeFunctionId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> FreeFunctionLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, GenericParamLongId> for GenericParamId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> GenericParamLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ImplAliasLongId> for ImplAliasId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplAliasLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ImplConstantDefLongId> for ImplConstantDefId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplConstantDefLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ImplDefLongId> for ImplDefId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplDefLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ImplFunctionLongId> for ImplFunctionId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplFunctionLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ImplImplDefLongId> for ImplImplDefId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplImplDefLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ImplTypeDefLongId> for ImplTypeDefId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ImplTypeDefLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, LocalVarLongId> for LocalVarId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> LocalVarLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, MemberLongId> for MemberId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> MemberLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ModuleTypeAliasLongId> for ModuleTypeAliasId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ModuleTypeAliasLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, ParamLongId> for ParamId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> ParamLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, PluginGeneratedFileLongId> for PluginGeneratedFileId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> PluginGeneratedFileLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, StructLongId> for StructId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> StructLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, SubmoduleLongId> for SubmoduleId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> SubmoduleLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, TraitConstantLongId> for TraitConstantId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitConstantLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, TraitFunctionLongId> for TraitFunctionId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitFunctionLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, TraitImplLongId> for TraitImplId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitImplLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, TraitLongId> for TraitId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, TraitTypeLongId> for TraitTypeId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> TraitTypeLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, UseLongId> for UseId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> UseLongId

Source§

impl<'a> LookupIntern<'a, dyn DefsGroup + 'a, VariantLongId> for VariantId

Source§

fn lookup_intern( &self, db: &(impl Upcast<dyn DefsGroup + 'a> + ?Sized), ) -> VariantLongId

Implementors§

Source§

impl<DB> DefsGroup for DB