pub struct RootDatabase { /* private fields */ }
Implementations§
source§impl RootDatabase
impl RootDatabase
pub fn empty() -> Self
pub fn builder() -> RootDatabaseBuilder
sourcepub fn snapshot(&self) -> RootDatabase
pub fn snapshot(&self) -> RootDatabase
Snapshots the db for read only.
Trait Implementations§
source§impl AsFilesGroupMut for RootDatabase
impl AsFilesGroupMut for RootDatabase
fn as_files_group_mut(&mut self) -> &mut (dyn FilesGroup + 'static)
source§impl Database for RootDatabase
impl Database for RootDatabase
source§fn salsa_event(&self, event_fn: Event)
fn salsa_event(&self, event_fn: Event)
source§fn unwind_if_cancelled(&self)
fn unwind_if_cancelled(&self)
source§fn salsa_runtime(&self) -> &Runtime
fn salsa_runtime(&self) -> &Runtime
source§fn salsa_runtime_mut(&mut self) -> &mut Runtime
fn salsa_runtime_mut(&mut self) -> &mut Runtime
source§impl DatabaseOps for RootDatabase
impl DatabaseOps for RootDatabase
source§fn ops_database(&self) -> &dyn Database
fn ops_database(&self) -> &dyn Database
dyn Database
.source§fn ops_salsa_runtime(&self) -> &Runtime
fn ops_salsa_runtime(&self) -> &Runtime
source§fn ops_salsa_runtime_mut(&mut self) -> &mut Runtime
fn ops_salsa_runtime_mut(&mut self) -> &mut Runtime
source§fn fmt_index(&self, input: DatabaseKeyIndex, fmt: &mut Formatter<'_>) -> Result
fn fmt_index(&self, input: DatabaseKeyIndex, fmt: &mut Formatter<'_>) -> Result
source§fn maybe_changed_after(
&self,
input: DatabaseKeyIndex,
revision: Revision,
) -> bool
fn maybe_changed_after( &self, input: DatabaseKeyIndex, revision: Revision, ) -> bool
input
may have changed since revision
.source§fn cycle_recovery_strategy(
&self,
input: DatabaseKeyIndex,
) -> CycleRecoveryStrategy
fn cycle_recovery_strategy( &self, input: DatabaseKeyIndex, ) -> CycleRecoveryStrategy
CycleRecoveryStrategy
for a given input.source§fn for_each_query(&self, op: &mut dyn FnMut(&dyn QueryStorageMassOps))
fn for_each_query(&self, op: &mut dyn FnMut(&dyn QueryStorageMassOps))
source§impl DatabaseStorageTypes for RootDatabase
impl DatabaseStorageTypes for RootDatabase
source§type DatabaseStorage = __SalsaDatabaseStorage
type DatabaseStorage = __SalsaDatabaseStorage
database_storage
macro.source§impl Default for RootDatabase
impl Default for RootDatabase
source§impl ExternalFiles for RootDatabase
impl ExternalFiles for RootDatabase
source§fn ext_as_virtual(&self, external_id: InternId) -> VirtualFile
fn ext_as_virtual(&self, external_id: InternId) -> VirtualFile
source§impl HasQueryGroup<DefsDatabase> for RootDatabase
impl HasQueryGroup<DefsDatabase> for RootDatabase
source§fn group_storage(&self) -> &<DefsDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<DefsDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<DefsDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<DefsDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl HasQueryGroup<FilesDatabase> for RootDatabase
impl HasQueryGroup<FilesDatabase> for RootDatabase
source§fn group_storage(&self) -> &<FilesDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<FilesDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<FilesDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<FilesDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl HasQueryGroup<LoweringDatabase> for RootDatabase
impl HasQueryGroup<LoweringDatabase> for RootDatabase
source§fn group_storage(&self) -> &<LoweringDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<LoweringDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<LoweringDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<LoweringDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl HasQueryGroup<ParserDatabase> for RootDatabase
impl HasQueryGroup<ParserDatabase> for RootDatabase
source§fn group_storage(&self) -> &<ParserDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<ParserDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<ParserDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<ParserDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl HasQueryGroup<SemanticDatabase> for RootDatabase
impl HasQueryGroup<SemanticDatabase> for RootDatabase
source§fn group_storage(&self) -> &<SemanticDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<SemanticDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<SemanticDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<SemanticDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl HasQueryGroup<SierraGenDatabase> for RootDatabase
impl HasQueryGroup<SierraGenDatabase> for RootDatabase
source§fn group_storage(&self) -> &<SierraGenDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<SierraGenDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<SierraGenDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<SierraGenDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl HasQueryGroup<SyntaxDatabase> for RootDatabase
impl HasQueryGroup<SyntaxDatabase> for RootDatabase
source§fn group_storage(&self) -> &<SyntaxDatabase as QueryGroup>::GroupStorage
fn group_storage(&self) -> &<SyntaxDatabase as QueryGroup>::GroupStorage
source§fn group_storage_mut(
&mut self,
) -> (&<SyntaxDatabase as QueryGroup>::GroupStorage, &mut Runtime)
fn group_storage_mut( &mut self, ) -> (&<SyntaxDatabase as QueryGroup>::GroupStorage, &mut Runtime)
Runtime
, since otherwise
the database is borrowed and one cannot get access to it.source§impl ParallelDatabase for RootDatabase
impl ParallelDatabase for RootDatabase
source§impl Upcast<dyn DefsGroup> for RootDatabase
impl Upcast<dyn DefsGroup> for RootDatabase
source§impl Upcast<dyn FilesGroup> for RootDatabase
impl Upcast<dyn FilesGroup> for RootDatabase
fn upcast(&self) -> &(dyn FilesGroup + 'static)
source§impl Upcast<dyn LoweringGroup> for RootDatabase
impl Upcast<dyn LoweringGroup> for RootDatabase
fn upcast(&self) -> &(dyn LoweringGroup + 'static)
source§impl Upcast<dyn ParserGroup> for RootDatabase
impl Upcast<dyn ParserGroup> for RootDatabase
fn upcast(&self) -> &(dyn ParserGroup + 'static)
source§impl Upcast<dyn SemanticGroup> for RootDatabase
impl Upcast<dyn SemanticGroup> for RootDatabase
fn upcast(&self) -> &(dyn SemanticGroup + 'static)
source§impl Upcast<dyn SyntaxGroup> for RootDatabase
impl Upcast<dyn SyntaxGroup> for RootDatabase
fn upcast(&self) -> &(dyn SyntaxGroup + 'static)
Auto Trait Implementations§
impl !Freeze for RootDatabase
impl !RefUnwindSafe for RootDatabase
impl Send for RootDatabase
impl !Sync for RootDatabase
impl Unpin for RootDatabase
impl !UnwindSafe for RootDatabase
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<DB> DefsGroup for DBwhere
DB: FilesGroup + SyntaxGroup + Upcast<dyn SyntaxGroup> + ParserGroup + Upcast<dyn FilesGroup> + Database + HasQueryGroup<DefsDatabase>,
impl<DB> DefsGroup for DBwhere
DB: FilesGroup + SyntaxGroup + Upcast<dyn SyntaxGroup> + ParserGroup + Upcast<dyn FilesGroup> + Database + HasQueryGroup<DefsDatabase>,
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_statement_const(&self, id: StatementConstLongId) -> StatementConstId
fn lookup_intern_statement_const( &self, key: StatementConstId, ) -> StatementConstLongId
fn intern_statement_use(&self, id: StatementUseLongId) -> StatementUseId
fn lookup_intern_statement_use(&self, key: StatementUseId) -> StatementUseLongId
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>>
source§fn set_macro_plugins(&mut self, value__: Vec<Arc<dyn MacroPlugin>>)
fn set_macro_plugins(&mut self, value__: Vec<Arc<dyn MacroPlugin>>)
macro_plugins
input. Read moresource§fn set_macro_plugins_with_durability(
&mut self,
value__: Vec<Arc<dyn MacroPlugin>>,
durability__: Durability,
)
fn set_macro_plugins_with_durability( &mut self, value__: Vec<Arc<dyn MacroPlugin>>, durability__: Durability, )
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. Read morefn 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>>>,
)
fn set_inline_macro_plugins( &mut self, value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>, )
inline_macro_plugins
input. Read moresource§fn set_inline_macro_plugins_with_durability(
&mut self,
value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>,
durability__: Durability,
)
fn set_inline_macro_plugins_with_durability( &mut self, value__: Arc<OrderedHashMap<String, Arc<dyn InlineMacroExprPlugin>>>, durability__: Durability, )
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. Read moresource§fn allowed_attributes(&self) -> Arc<OrderedHashSet<String>>
fn allowed_attributes(&self) -> Arc<OrderedHashSet<String>>
source§fn allowed_statement_attributes(&self) -> Arc<OrderedHashSet<String>>
fn allowed_statement_attributes(&self) -> Arc<OrderedHashSet<String>>
source§fn declared_derives(&self) -> Arc<OrderedHashSet<String>>
fn declared_derives(&self) -> Arc<OrderedHashSet<String>>
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>>
fn declared_phantom_type_attributes(&self) -> Arc<OrderedHashSet<String>>
source§fn is_submodule_inline(
&self,
submodule_id: SubmoduleId,
) -> Result<bool, DiagnosticAdded>
fn is_submodule_inline( &self, submodule_id: SubmoduleId, ) -> Result<bool, DiagnosticAdded>
source§fn module_main_file(
&self,
module_id: ModuleId,
) -> Result<FileId, DiagnosticAdded>
fn module_main_file( &self, module_id: ModuleId, ) -> Result<FileId, DiagnosticAdded>
source§fn module_files(
&self,
module_id: ModuleId,
) -> Result<Arc<[FileId]>, DiagnosticAdded>
fn module_files( &self, module_id: ModuleId, ) -> Result<Arc<[FileId]>, DiagnosticAdded>
source§fn module_file(
&self,
module_id: ModuleFileId,
) -> Result<FileId, DiagnosticAdded>
fn module_file( &self, module_id: ModuleFileId, ) -> Result<FileId, DiagnosticAdded>
source§fn module_dir(&self, module_id: ModuleId) -> Result<Directory, DiagnosticAdded>
fn module_dir(&self, module_id: ModuleId) -> Result<Directory, DiagnosticAdded>
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, ) -> Result<Arc<[ModuleId]>, DiagnosticAdded>
fn priv_module_data( &self, module_id: ModuleId, ) -> Result<ModuleData, DiagnosticAdded>
fn priv_module_sub_files( &self, module_id: ModuleId, file_id: FileId, ) -> Result<Arc<PrivModuleSubFiles>, DiagnosticAdded>
fn module_submodules( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<SubmoduleId, ItemModule>>, DiagnosticAdded>
fn module_submodules_ids( &self, module_id: ModuleId, ) -> Result<Arc<[SubmoduleId]>, DiagnosticAdded>
fn module_constants( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<ConstantId, ItemConstant>>, DiagnosticAdded>
fn module_constants_ids( &self, module_id: ModuleId, ) -> Result<Arc<[ConstantId]>, DiagnosticAdded>
fn module_constant_by_id( &self, constant_id: ConstantId, ) -> Result<Option<ItemConstant>, DiagnosticAdded>
fn module_free_functions( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<FreeFunctionId, FunctionWithBody>>, DiagnosticAdded>
fn module_free_functions_ids( &self, module_id: ModuleId, ) -> Result<Arc<[FreeFunctionId]>, DiagnosticAdded>
fn module_free_function_by_id( &self, free_function_id: FreeFunctionId, ) -> Result<Option<FunctionWithBody>, DiagnosticAdded>
fn module_items( &self, module_id: ModuleId, ) -> Result<Arc<[ModuleItemId]>, DiagnosticAdded>
source§fn module_item_name_stable_ptr(
&self,
module_id: ModuleId,
item_id: ModuleItemId,
) -> Result<SyntaxStablePtrId, DiagnosticAdded>
fn module_item_name_stable_ptr( &self, module_id: ModuleId, item_id: ModuleItemId, ) -> Result<SyntaxStablePtrId, DiagnosticAdded>
fn module_uses( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<UseId, UsePathLeaf>>, DiagnosticAdded>
fn module_uses_ids( &self, module_id: ModuleId, ) -> Result<Arc<[UseId]>, DiagnosticAdded>
fn module_use_by_id( &self, use_id: UseId, ) -> Result<Option<UsePathLeaf>, DiagnosticAdded>
fn module_structs( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<StructId, ItemStruct>>, DiagnosticAdded>
fn module_structs_ids( &self, module_id: ModuleId, ) -> Result<Arc<[StructId]>, DiagnosticAdded>
fn module_struct_by_id( &self, struct_id: StructId, ) -> Result<Option<ItemStruct>, DiagnosticAdded>
fn module_enums( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<EnumId, ItemEnum>>, DiagnosticAdded>
fn module_enums_ids( &self, module_id: ModuleId, ) -> Result<Arc<[EnumId]>, DiagnosticAdded>
fn module_enum_by_id( &self, enum_id: EnumId, ) -> Result<Option<ItemEnum>, DiagnosticAdded>
fn module_type_aliases( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<ModuleTypeAliasId, ItemTypeAlias>>, DiagnosticAdded>
fn module_type_aliases_ids( &self, module_id: ModuleId, ) -> Result<Arc<[ModuleTypeAliasId]>, DiagnosticAdded>
fn module_type_alias_by_id( &self, module_type_alias_id: ModuleTypeAliasId, ) -> Result<Option<ItemTypeAlias>, DiagnosticAdded>
fn module_impl_aliases( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<ImplAliasId, ItemImplAlias>>, DiagnosticAdded>
fn module_impl_aliases_ids( &self, module_id: ModuleId, ) -> Result<Arc<[ImplAliasId]>, DiagnosticAdded>
fn module_impl_alias_by_id( &self, impl_alias_id: ImplAliasId, ) -> Result<Option<ItemImplAlias>, DiagnosticAdded>
fn module_traits( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<TraitId, ItemTrait>>, DiagnosticAdded>
fn module_traits_ids( &self, module_id: ModuleId, ) -> Result<Arc<[TraitId]>, DiagnosticAdded>
fn module_trait_by_id( &self, trait_id: TraitId, ) -> Result<Option<ItemTrait>, DiagnosticAdded>
fn module_impls( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<ImplDefId, ItemImpl>>, DiagnosticAdded>
fn module_impls_ids( &self, module_id: ModuleId, ) -> Result<Arc<[ImplDefId]>, DiagnosticAdded>
fn module_impl_by_id( &self, impl_id: ImplDefId, ) -> Result<Option<ItemImpl>, DiagnosticAdded>
fn module_extern_types( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<ExternTypeId, ItemExternType>>, DiagnosticAdded>
fn module_extern_types_ids( &self, module_id: ModuleId, ) -> Result<Arc<[ExternTypeId]>, DiagnosticAdded>
fn module_extern_type_by_id( &self, extern_type_id: ExternTypeId, ) -> Result<Option<ItemExternType>, DiagnosticAdded>
fn module_extern_functions( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<ExternFunctionId, ItemExternFunction>>, DiagnosticAdded>
fn module_extern_functions_ids( &self, module_id: ModuleId, ) -> Result<Arc<[ExternFunctionId]>, DiagnosticAdded>
fn module_extern_function_by_id( &self, extern_function_id: ExternFunctionId, ) -> Result<Option<ItemExternFunction>, DiagnosticAdded>
fn module_ancestors(&self, module_id: ModuleId) -> OrderedHashSet<ModuleId>
fn module_generated_file_aux_data( &self, module_id: ModuleId, ) -> Result<Arc<[Option<DynGeneratedFileAuxData>]>, DiagnosticAdded>
fn module_plugin_diagnostics( &self, module_id: ModuleId, ) -> Result<Arc<[(ModuleFileId, PluginDiagnostic)]>, DiagnosticAdded>
source§impl<T> Elongate for Twhere
T: Upcast<dyn SemanticGroup>,
impl<T> Elongate for Twhere
T: Upcast<dyn SemanticGroup>,
fn elongate(&self) -> &(dyn SemanticGroup + 'static)
source§impl<DB> FilesGroup for DB
impl<DB> FilesGroup for DB
fn intern_crate(&self, crt: CrateLongId) -> CrateId
fn lookup_intern_crate(&self, key: CrateId) -> CrateLongId
fn intern_file(&self, file: FileLongId) -> FileId
fn lookup_intern_file(&self, key: FileId) -> FileLongId
fn intern_flag(&self, flag: FlagLongId) -> FlagId
fn lookup_intern_flag(&self, key: FlagId) -> FlagLongId
source§fn crate_configs(&self) -> Arc<OrderedHashMap<CrateId, CrateConfiguration>>
fn crate_configs(&self) -> Arc<OrderedHashMap<CrateId, CrateConfiguration>>
source§fn set_crate_configs(
&mut self,
value__: Arc<OrderedHashMap<CrateId, CrateConfiguration>>,
)
fn set_crate_configs( &mut self, value__: Arc<OrderedHashMap<CrateId, CrateConfiguration>>, )
crate_configs
input. Read moresource§fn set_crate_configs_with_durability(
&mut self,
value__: Arc<OrderedHashMap<CrateId, CrateConfiguration>>,
durability__: Durability,
)
fn set_crate_configs_with_durability( &mut self, value__: Arc<OrderedHashMap<CrateId, CrateConfiguration>>, durability__: Durability, )
crate_configs
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. Read moresource§fn file_overrides(&self) -> Arc<OrderedHashMap<FileId, Arc<str>>>
fn file_overrides(&self) -> Arc<OrderedHashMap<FileId, Arc<str>>>
source§fn set_file_overrides(&mut self, value__: Arc<OrderedHashMap<FileId, Arc<str>>>)
fn set_file_overrides(&mut self, value__: Arc<OrderedHashMap<FileId, Arc<str>>>)
file_overrides
input. Read moresource§fn set_file_overrides_with_durability(
&mut self,
value__: Arc<OrderedHashMap<FileId, Arc<str>>>,
durability__: Durability,
)
fn set_file_overrides_with_durability( &mut self, value__: Arc<OrderedHashMap<FileId, Arc<str>>>, durability__: Durability, )
file_overrides
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. Read moresource§fn set_flags(&mut self, value__: Arc<OrderedHashMap<FlagId, Arc<Flag>>>)
fn set_flags(&mut self, value__: Arc<OrderedHashMap<FlagId, Arc<Flag>>>)
flags
input. Read moresource§fn set_flags_with_durability(
&mut self,
value__: Arc<OrderedHashMap<FlagId, Arc<Flag>>>,
durability__: Durability,
)
fn set_flags_with_durability( &mut self, value__: Arc<OrderedHashMap<FlagId, Arc<Flag>>>, durability__: Durability, )
flags
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. Read moresource§fn set_cfg_set_with_durability(
&mut self,
value__: Arc<CfgSet>,
durability__: Durability,
)
fn set_cfg_set_with_durability( &mut self, value__: Arc<CfgSet>, durability__: Durability, )
cfg_set
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. Read moresource§fn crate_config(&self, crate_id: CrateId) -> Option<CrateConfiguration>
fn crate_config(&self, crate_id: CrateId) -> Option<CrateConfiguration>
source§fn priv_raw_file_content(&self, file_id: FileId) -> Option<Arc<str>>
fn priv_raw_file_content(&self, file_id: FileId) -> Option<Arc<str>>
source§fn file_content(&self, file_id: FileId) -> Option<Arc<str>>
fn file_content(&self, file_id: FileId) -> Option<Arc<str>>
fn file_summary(&self, file_id: FileId) -> Option<Arc<FileSummary>>
source§impl<T> FilesGroupEx for T
impl<T> FilesGroupEx for T
source§fn override_file_content(&mut self, file: FileId, content: Option<Arc<str>>)
fn override_file_content(&mut self, file: FileId, content: Option<Arc<str>>)
source§fn set_crate_config(&mut self, crt: CrateId, root: Option<CrateConfiguration>)
fn set_crate_config(&mut self, crt: CrateId, root: Option<CrateConfiguration>)
source§impl<'a, T> FunctionImplicitsTrait<'a> for T
impl<'a, T> FunctionImplicitsTrait<'a> for T
source§fn function_with_body_implicits(
&self,
function: ConcreteFunctionWithBodyId,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn function_with_body_implicits( &self, function: ConcreteFunctionWithBodyId, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<DB> LoweringGroup for DB
impl<DB> LoweringGroup for DB
fn intern_lowering_function(&self, id: FunctionLongId) -> FunctionId
fn lookup_intern_lowering_function(&self, key: FunctionId) -> FunctionLongId
fn intern_lowering_concrete_function_with_body( &self, id: ConcreteFunctionWithBodyLongId, ) -> ConcreteFunctionWithBodyId
fn lookup_intern_lowering_concrete_function_with_body( &self, key: ConcreteFunctionWithBodyId, ) -> ConcreteFunctionWithBodyLongId
fn intern_lowering_function_with_body( &self, id: FunctionWithBodyLongId, ) -> FunctionWithBodyId
fn lookup_intern_lowering_function_with_body( &self, key: FunctionWithBodyId, ) -> FunctionWithBodyLongId
fn intern_location(&self, id: Location) -> LocationId
fn lookup_intern_location(&self, key: LocationId) -> Location
fn intern_strategy(&self, id: OptimizationStrategy) -> OptimizationStrategyId
fn lookup_intern_strategy( &self, key: OptimizationStrategyId, ) -> OptimizationStrategy
source§fn priv_function_with_body_multi_lowering(
&self,
function_id: FunctionWithBodyId,
) -> Result<Arc<MultiLowering>, DiagnosticAdded>
fn priv_function_with_body_multi_lowering( &self, function_id: FunctionWithBodyId, ) -> Result<Arc<MultiLowering>, DiagnosticAdded>
source§fn priv_function_with_body_lowering(
&self,
function_id: FunctionWithBodyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn priv_function_with_body_lowering( &self, function_id: FunctionWithBodyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn function_with_body_lowering_with_borrow_check(
&self,
function_id: FunctionWithBodyId,
) -> Result<(Arc<FlatLowered>, Arc<UnorderedHashMap<BlockId, Vec<FunctionId>>>), DiagnosticAdded>
fn function_with_body_lowering_with_borrow_check( &self, function_id: FunctionWithBodyId, ) -> Result<(Arc<FlatLowered>, Arc<UnorderedHashMap<BlockId, Vec<FunctionId>>>), DiagnosticAdded>
source§fn function_with_body_lowering(
&self,
function_id: FunctionWithBodyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn function_with_body_lowering( &self, function_id: FunctionWithBodyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn priv_concrete_function_with_body_lowered_flat(
&self,
function_id: ConcreteFunctionWithBodyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn priv_concrete_function_with_body_lowered_flat( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn concrete_function_with_body_postpanic_lowered(
&self,
function_id: ConcreteFunctionWithBodyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn concrete_function_with_body_postpanic_lowered( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn optimized_concrete_function_with_body_lowered(
&self,
function: ConcreteFunctionWithBodyId,
optimization_strategy: OptimizationStrategyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn optimized_concrete_function_with_body_lowered( &self, function: ConcreteFunctionWithBodyId, optimization_strategy: OptimizationStrategyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn inlined_function_with_body_lowered(
&self,
function_id: ConcreteFunctionWithBodyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn inlined_function_with_body_lowered( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn final_concrete_function_with_body_lowered(
&self,
function_id: ConcreteFunctionWithBodyId,
) -> Result<Arc<FlatLowered>, DiagnosticAdded>
fn final_concrete_function_with_body_lowered( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<Arc<FlatLowered>, DiagnosticAdded>
source§fn concrete_function_with_body_direct_callees(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<Vec<FunctionId>, DiagnosticAdded>
fn concrete_function_with_body_direct_callees( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Result<Vec<FunctionId>, DiagnosticAdded>
source§fn concrete_function_with_body_postpanic_direct_callees(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<Vec<FunctionId>, DiagnosticAdded>
fn concrete_function_with_body_postpanic_direct_callees( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Result<Vec<FunctionId>, DiagnosticAdded>
source§fn concrete_function_with_body_direct_callees_with_body(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<Vec<ConcreteFunctionWithBodyId>, DiagnosticAdded>
fn concrete_function_with_body_direct_callees_with_body( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Result<Vec<ConcreteFunctionWithBodyId>, DiagnosticAdded>
source§fn concrete_function_with_body_postpanic_direct_callees_with_body(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<Vec<ConcreteFunctionWithBodyId>, DiagnosticAdded>
fn concrete_function_with_body_postpanic_direct_callees_with_body( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Result<Vec<ConcreteFunctionWithBodyId>, DiagnosticAdded>
source§fn final_concrete_function_with_body_lowered_direct_callees(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<Vec<ConcreteFunctionWithBodyId>, DiagnosticAdded>
fn final_concrete_function_with_body_lowered_direct_callees( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Result<Vec<ConcreteFunctionWithBodyId>, DiagnosticAdded>
source§fn function_with_body_lowering_diagnostics(
&self,
function_id: FunctionWithBodyId,
) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
fn function_with_body_lowering_diagnostics( &self, function_id: FunctionWithBodyId, ) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
source§fn semantic_function_with_body_lowering_diagnostics(
&self,
function_id: FunctionWithBodyId,
) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
fn semantic_function_with_body_lowering_diagnostics( &self, function_id: FunctionWithBodyId, ) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
source§fn module_lowering_diagnostics(
&self,
module_id: ModuleId,
) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
fn module_lowering_diagnostics( &self, module_id: ModuleId, ) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
source§fn file_lowering_diagnostics(
&self,
file_id: FileId,
) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
fn file_lowering_diagnostics( &self, file_id: FileId, ) -> Result<Diagnostics<LoweringDiagnostic>, DiagnosticAdded>
source§fn function_implicits(
&self,
function: FunctionId,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn function_implicits( &self, function: FunctionId, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§fn scc_implicits(
&self,
function: ConcreteSCCRepresentative,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn scc_implicits( &self, function: ConcreteSCCRepresentative, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§fn function_may_panic(
&self,
function: FunctionId,
) -> Result<bool, DiagnosticAdded>
fn function_may_panic( &self, function: FunctionId, ) -> Result<bool, DiagnosticAdded>
source§fn scc_may_panic(
&self,
scc: ConcreteSCCRepresentative,
) -> Result<bool, DiagnosticAdded>
fn scc_may_panic( &self, scc: ConcreteSCCRepresentative, ) -> Result<bool, DiagnosticAdded>
source§fn has_direct_panic(
&self,
function_id: ConcreteFunctionWithBodyId,
) -> Result<bool, DiagnosticAdded>
fn has_direct_panic( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<bool, DiagnosticAdded>
source§fn function_with_body_direct_callees(
&self,
function_id: FunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<OrderedHashSet<FunctionId>, DiagnosticAdded>
fn function_with_body_direct_callees( &self, function_id: FunctionWithBodyId, dependency_type: DependencyType, ) -> Result<OrderedHashSet<FunctionId>, DiagnosticAdded>
source§fn function_with_body_direct_function_with_body_callees(
&self,
function_id: FunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<OrderedHashSet<FunctionWithBodyId>, DiagnosticAdded>
fn function_with_body_direct_function_with_body_callees( &self, function_id: FunctionWithBodyId, dependency_type: DependencyType, ) -> Result<OrderedHashSet<FunctionWithBodyId>, DiagnosticAdded>
source§fn final_contains_call_cycle(
&self,
function_id: ConcreteFunctionWithBodyId,
) -> Result<bool, DiagnosticAdded>
fn final_contains_call_cycle( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<bool, DiagnosticAdded>
true
if the function (in its final lowering representation) calls (possibly
indirectly) itself, or if it calls (possibly indirectly) such a function. For example, if f0
calls f1, f1 calls f2, f2 calls f3, and f3 calls f2, then Self::final_contains_call_cycle
will return true
for all of these functions.source§fn in_cycle(
&self,
function_id: FunctionWithBodyId,
dependency_type: DependencyType,
) -> Result<bool, DiagnosticAdded>
fn in_cycle( &self, function_id: FunctionWithBodyId, dependency_type: DependencyType, ) -> Result<bool, DiagnosticAdded>
true
if the function calls (possibly indirectly) itself. For example, if f0 calls
f1, f1 calls f2, f2 calls f3, and f3 calls f2, then Self::in_cycle will return
true
for f2 and f3, but false for f0 and f1.source§fn concrete_function_with_body_scc_representative(
&self,
function: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> ConcreteSCCRepresentative
fn concrete_function_with_body_scc_representative( &self, function: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> ConcreteSCCRepresentative
source§fn concrete_function_with_body_scc(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Vec<ConcreteFunctionWithBodyId>
fn concrete_function_with_body_scc( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Vec<ConcreteFunctionWithBodyId>
source§fn concrete_function_with_body_scc_postpanic_representative(
&self,
function: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> ConcreteSCCRepresentative
fn concrete_function_with_body_scc_postpanic_representative( &self, function: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> ConcreteSCCRepresentative
source§fn concrete_function_with_body_postpanic_scc(
&self,
function_id: ConcreteFunctionWithBodyId,
dependency_type: DependencyType,
) -> Vec<ConcreteFunctionWithBodyId>
fn concrete_function_with_body_postpanic_scc( &self, function_id: ConcreteFunctionWithBodyId, dependency_type: DependencyType, ) -> Vec<ConcreteFunctionWithBodyId>
source§fn function_with_body_scc(
&self,
function_id: FunctionWithBodyId,
dependency_type: DependencyType,
) -> Vec<FunctionWithBodyId>
fn function_with_body_scc( &self, function_id: FunctionWithBodyId, dependency_type: DependencyType, ) -> Vec<FunctionWithBodyId>
source§fn function_with_body_feedback_set(
&self,
function: ConcreteFunctionWithBodyId,
) -> Result<OrderedHashSet<ConcreteFunctionWithBodyId>, DiagnosticAdded>
fn function_with_body_feedback_set( &self, function: ConcreteFunctionWithBodyId, ) -> Result<OrderedHashSet<ConcreteFunctionWithBodyId>, DiagnosticAdded>
source§fn needs_withdraw_gas(
&self,
function: ConcreteFunctionWithBodyId,
) -> Result<bool, DiagnosticAdded>
fn needs_withdraw_gas( &self, function: ConcreteFunctionWithBodyId, ) -> Result<bool, DiagnosticAdded>
source§fn priv_function_with_body_feedback_set_of_representative(
&self,
function: ConcreteSCCRepresentative,
) -> Result<OrderedHashSet<ConcreteFunctionWithBodyId>, DiagnosticAdded>
fn priv_function_with_body_feedback_set_of_representative( &self, function: ConcreteSCCRepresentative, ) -> Result<OrderedHashSet<ConcreteFunctionWithBodyId>, DiagnosticAdded>
source§fn priv_movable_function_ids(&self) -> Arc<UnorderedHashSet<FunctionId>>
fn priv_movable_function_ids(&self) -> Arc<UnorderedHashSet<FunctionId>>
source§fn priv_const_folding_info(&self) -> Arc<ConstFoldingLibfuncInfo>
fn priv_const_folding_info(&self) -> Arc<ConstFoldingLibfuncInfo>
fn priv_should_inline( &self, function_id: ConcreteFunctionWithBodyId, ) -> Result<bool, DiagnosticAdded>
source§fn optimization_config(&self) -> Arc<OptimizationConfig>
fn optimization_config(&self) -> Arc<OptimizationConfig>
source§fn set_optimization_config(&mut self, value__: Arc<OptimizationConfig>)
fn set_optimization_config(&mut self, value__: Arc<OptimizationConfig>)
optimization_config
input. Read moresource§fn set_optimization_config_with_durability(
&mut self,
value__: Arc<OptimizationConfig>,
durability__: Durability,
)
fn set_optimization_config_with_durability( &mut self, value__: Arc<OptimizationConfig>, durability__: Durability, )
optimization_config
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. Read moresource§fn final_optimization_strategy(&self) -> OptimizationStrategyId
fn final_optimization_strategy(&self) -> OptimizationStrategyId
source§fn baseline_optimization_strategy(&self) -> OptimizationStrategyId
fn baseline_optimization_strategy(&self) -> OptimizationStrategyId
source§impl<'a, T> MayPanicTrait<'a> for T
impl<'a, T> MayPanicTrait<'a> for T
source§fn function_with_body_may_panic(
&self,
function: ConcreteFunctionWithBodyId,
) -> Result<bool, DiagnosticAdded>
fn function_with_body_may_panic( &self, function: ConcreteFunctionWithBodyId, ) -> Result<bool, DiagnosticAdded>
source§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.bright_yellow());
source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.bright_magenta());
source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.bright_white());
source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.on_bright_yellow());
source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlue
.
§Example
println!("{}", value.on_bright_blue());
source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.on_bright_magenta());
source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightCyan
.
§Example
println!("{}", value.on_bright_cyan());
source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.on_bright_white());
source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
source§impl<DB> ParserGroup for DBwhere
DB: SyntaxGroup + Upcast<dyn SyntaxGroup> + FilesGroup + Database + HasQueryGroup<ParserDatabase>,
impl<DB> ParserGroup for DBwhere
DB: SyntaxGroup + Upcast<dyn SyntaxGroup> + FilesGroup + Database + HasQueryGroup<ParserDatabase>,
source§fn priv_file_syntax_data(&self, file_id: FileId) -> SyntaxData
fn priv_file_syntax_data(&self, file_id: FileId) -> SyntaxData
source§fn file_syntax(&self, file_id: FileId) -> Result<SyntaxNode, DiagnosticAdded>
fn file_syntax(&self, file_id: FileId) -> Result<SyntaxNode, DiagnosticAdded>
source§fn file_module_syntax(
&self,
file_id: FileId,
) -> Result<SyntaxFile, DiagnosticAdded>
fn file_module_syntax( &self, file_id: FileId, ) -> Result<SyntaxFile, DiagnosticAdded>
source§fn file_expr_syntax(&self, file_id: FileId) -> Result<Expr, DiagnosticAdded>
fn file_expr_syntax(&self, file_id: FileId) -> Result<Expr, DiagnosticAdded>
source§fn file_syntax_diagnostics(
&self,
file_id: FileId,
) -> Diagnostics<ParserDiagnostic>
fn file_syntax_diagnostics( &self, file_id: FileId, ) -> Diagnostics<ParserDiagnostic>
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'a, T> SemanticEnumEx<'a> for T
impl<'a, T> SemanticEnumEx<'a> for T
source§fn concrete_enum_variant(
&self,
concrete_enum_id: ConcreteEnumId,
variant: &Variant,
) -> Result<ConcreteVariant, DiagnosticAdded>
fn concrete_enum_variant( &self, concrete_enum_id: ConcreteEnumId, variant: &Variant, ) -> Result<ConcreteVariant, DiagnosticAdded>
source§fn concrete_enum_variants(
&self,
concrete_enum_id: ConcreteEnumId,
) -> Result<Vec<ConcreteVariant>, DiagnosticAdded>
fn concrete_enum_variants( &self, concrete_enum_id: ConcreteEnumId, ) -> Result<Vec<ConcreteVariant>, DiagnosticAdded>
source§impl<'a, T> SemanticExprLookup<'a> for T
impl<'a, T> SemanticExprLookup<'a> for T
fn lookup_expr_by_ptr( &self, function_id: FunctionWithBodyId, ptr: ExprPtr, ) -> Result<Id<Expr>, DiagnosticAdded>
fn lookup_pattern_by_ptr( &self, function_id: FunctionWithBodyId, ptr: PatternPtr, ) -> Result<Id<Pattern>, DiagnosticAdded>
source§impl<DB> SemanticGroup for DBwhere
DB: DefsGroup + Upcast<dyn DefsGroup> + Upcast<dyn ParserGroup> + Upcast<dyn FilesGroup> + AsFilesGroupMut + Elongate + Database + HasQueryGroup<SemanticDatabase>,
impl<DB> SemanticGroup for DBwhere
DB: DefsGroup + Upcast<dyn DefsGroup> + Upcast<dyn ParserGroup> + Upcast<dyn FilesGroup> + AsFilesGroupMut + Elongate + Database + HasQueryGroup<SemanticDatabase>,
fn intern_function(&self, id: FunctionLongId) -> FunctionId
fn lookup_intern_function(&self, key: FunctionId) -> FunctionLongId
fn intern_concrete_function_with_body( &self, id: ConcreteFunctionWithBody, ) -> ConcreteFunctionWithBodyId
fn lookup_intern_concrete_function_with_body( &self, key: ConcreteFunctionWithBodyId, ) -> ConcreteFunctionWithBody
fn intern_concrete_struct(&self, id: ConcreteStructLongId) -> ConcreteStructId
fn lookup_intern_concrete_struct( &self, key: ConcreteStructId, ) -> ConcreteStructLongId
fn intern_concrete_enum(&self, id: ConcreteEnumLongId) -> ConcreteEnumId
fn lookup_intern_concrete_enum(&self, key: ConcreteEnumId) -> ConcreteEnumLongId
fn intern_concrete_extern_type( &self, id: ConcreteExternTypeLongId, ) -> ConcreteExternTypeId
fn lookup_intern_concrete_extern_type( &self, key: ConcreteExternTypeId, ) -> ConcreteExternTypeLongId
fn intern_concrete_trait(&self, id: ConcreteTraitLongId) -> ConcreteTraitId
fn lookup_intern_concrete_trait( &self, key: ConcreteTraitId, ) -> ConcreteTraitLongId
fn intern_concrete_trait_function( &self, id: ConcreteTraitGenericFunctionLongId, ) -> ConcreteTraitGenericFunctionId
fn lookup_intern_concrete_trait_function( &self, key: ConcreteTraitGenericFunctionId, ) -> ConcreteTraitGenericFunctionLongId
fn intern_concrete_trait_type( &self, id: ConcreteTraitTypeLongId, ) -> ConcreteTraitTypeId
fn lookup_intern_concrete_trait_type( &self, key: ConcreteTraitTypeId, ) -> ConcreteTraitTypeLongId
fn intern_concrete_trait_constant( &self, id: ConcreteTraitConstantLongId, ) -> ConcreteTraitConstantId
fn lookup_intern_concrete_trait_constant( &self, key: ConcreteTraitConstantId, ) -> ConcreteTraitConstantLongId
fn intern_concrete_impl(&self, id: ConcreteImplLongId) -> ConcreteImplId
fn lookup_intern_concrete_impl(&self, key: ConcreteImplId) -> ConcreteImplLongId
fn intern_concrete_trait_impl( &self, id: ConcreteTraitImplLongId, ) -> ConcreteTraitImplId
fn lookup_intern_concrete_trait_impl( &self, key: ConcreteTraitImplId, ) -> ConcreteTraitImplLongId
fn intern_type(&self, id: TypeLongId) -> TypeId
fn lookup_intern_type(&self, key: TypeId) -> TypeLongId
fn intern_const_value(&self, id: ConstValue) -> ConstValueId
fn lookup_intern_const_value(&self, key: ConstValueId) -> ConstValue
fn intern_impl(&self, id: ImplLongId) -> ImplId
fn lookup_intern_impl(&self, key: ImplId) -> ImplLongId
fn intern_impl_var(&self, id: ImplVar) -> ImplVarId
fn lookup_intern_impl_var(&self, key: ImplVarId) -> ImplVar
fn intern_generated_impl(&self, id: GeneratedImplLongId) -> GeneratedImplId
fn lookup_intern_generated_impl( &self, key: GeneratedImplId, ) -> GeneratedImplLongId
fn intern_uninferred_generated_impl( &self, id: UninferredGeneratedImplLongId, ) -> UninferredGeneratedImplId
fn lookup_intern_uninferred_generated_impl( &self, key: UninferredGeneratedImplId, ) -> UninferredGeneratedImplLongId
source§fn priv_constant_semantic_data(
&self,
const_id: ConstantId,
in_cycle: bool,
) -> Result<ConstantData, DiagnosticAdded>
fn priv_constant_semantic_data( &self, const_id: ConstantId, in_cycle: bool, ) -> Result<ConstantData, DiagnosticAdded>
source§fn constant_semantic_diagnostics(
&self,
const_id: ConstantId,
) -> Diagnostics<SemanticDiagnostic>
fn constant_semantic_diagnostics( &self, const_id: ConstantId, ) -> Diagnostics<SemanticDiagnostic>
source§fn constant_semantic_data(
&self,
use_id: ConstantId,
) -> Result<Constant, DiagnosticAdded>
fn constant_semantic_data( &self, use_id: ConstantId, ) -> Result<Constant, DiagnosticAdded>
fn constant_resolver_data( &self, use_id: ConstantId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn constant_const_value( &self, const_id: ConstantId, ) -> Result<ConstValueId, DiagnosticAdded>
fn constant_const_type( &self, const_id: ConstantId, ) -> Result<TypeId, DiagnosticAdded>
source§fn priv_use_semantic_data(
&self,
use_id: UseId,
) -> Result<UseData, DiagnosticAdded>
fn priv_use_semantic_data( &self, use_id: UseId, ) -> Result<UseData, DiagnosticAdded>
source§fn use_semantic_diagnostics(
&self,
use_id: UseId,
) -> Diagnostics<SemanticDiagnostic>
fn use_semantic_diagnostics( &self, use_id: UseId, ) -> Diagnostics<SemanticDiagnostic>
fn use_resolver_data( &self, use_id: UseId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_module_semantic_data(
&self,
module_id: ModuleId,
) -> Result<Arc<ModuleSemanticData>, DiagnosticAdded>
fn priv_module_semantic_data( &self, module_id: ModuleId, ) -> Result<Arc<ModuleSemanticData>, DiagnosticAdded>
source§fn module_item_by_name(
&self,
module_id: ModuleId,
name: SmolStr,
) -> Result<Option<ModuleItemId>, DiagnosticAdded>
fn module_item_by_name( &self, module_id: ModuleId, name: SmolStr, ) -> Result<Option<ModuleItemId>, DiagnosticAdded>
source§fn module_item_info_by_name(
&self,
module_id: ModuleId,
name: SmolStr,
) -> Result<Option<ModuleItemInfo>, DiagnosticAdded>
fn module_item_info_by_name( &self, module_id: ModuleId, name: SmolStr, ) -> Result<Option<ModuleItemInfo>, DiagnosticAdded>
source§fn module_all_used_items(
&self,
module_id: ModuleId,
) -> Result<Arc<OrderedHashSet<LookupItemId>>, DiagnosticAdded>
fn module_all_used_items( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashSet<LookupItemId>>, DiagnosticAdded>
source§fn module_attributes(
&self,
module_id: ModuleId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn module_attributes( &self, module_id: ModuleId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn module_usable_trait_ids(
&self,
module_id: ModuleId,
) -> Result<Arc<OrderedHashMap<TraitId, LookupItemId>>, DiagnosticAdded>
fn module_usable_trait_ids( &self, module_id: ModuleId, ) -> Result<Arc<OrderedHashMap<TraitId, LookupItemId>>, DiagnosticAdded>
source§fn priv_struct_declaration_data(
&self,
struct_id: StructId,
) -> Result<StructDeclarationData, DiagnosticAdded>
fn priv_struct_declaration_data( &self, struct_id: StructId, ) -> Result<StructDeclarationData, DiagnosticAdded>
source§fn struct_declaration_diagnostics(
&self,
struct_id: StructId,
) -> Diagnostics<SemanticDiagnostic>
fn struct_declaration_diagnostics( &self, struct_id: StructId, ) -> Diagnostics<SemanticDiagnostic>
source§fn struct_attributes(
&self,
struct_id: StructId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn struct_attributes( &self, struct_id: StructId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn struct_generic_params(
&self,
struct_id: StructId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn struct_generic_params( &self, struct_id: StructId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn struct_generic_params_data(
&self,
struct_id: StructId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn struct_generic_params_data( &self, struct_id: StructId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn struct_declaration_resolver_data(
&self,
structure_id: StructId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn struct_declaration_resolver_data( &self, structure_id: StructId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_struct_definition_data(
&self,
struct_id: StructId,
) -> Result<StructDefinitionData, DiagnosticAdded>
fn priv_struct_definition_data( &self, struct_id: StructId, ) -> Result<StructDefinitionData, DiagnosticAdded>
source§fn struct_definition_diagnostics(
&self,
struct_id: StructId,
) -> Diagnostics<SemanticDiagnostic>
fn struct_definition_diagnostics( &self, struct_id: StructId, ) -> Diagnostics<SemanticDiagnostic>
source§fn struct_members(
&self,
struct_id: StructId,
) -> Result<Arc<OrderedHashMap<SmolStr, Member>>, DiagnosticAdded>
fn struct_members( &self, struct_id: StructId, ) -> Result<Arc<OrderedHashMap<SmolStr, Member>>, DiagnosticAdded>
source§fn struct_definition_resolver_data(
&self,
structure_id: StructId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn struct_definition_resolver_data( &self, structure_id: StructId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn concrete_struct_members(
&self,
concrete_struct_id: ConcreteStructId,
) -> Result<Arc<OrderedHashMap<SmolStr, Member>>, DiagnosticAdded>
fn concrete_struct_members( &self, concrete_struct_id: ConcreteStructId, ) -> Result<Arc<OrderedHashMap<SmolStr, Member>>, DiagnosticAdded>
source§fn priv_enum_declaration_data(
&self,
enum_id: EnumId,
) -> Result<EnumDeclarationData, DiagnosticAdded>
fn priv_enum_declaration_data( &self, enum_id: EnumId, ) -> Result<EnumDeclarationData, DiagnosticAdded>
source§fn enum_declaration_diagnostics(
&self,
enum_id: EnumId,
) -> Diagnostics<SemanticDiagnostic>
fn enum_declaration_diagnostics( &self, enum_id: EnumId, ) -> Diagnostics<SemanticDiagnostic>
source§fn enum_generic_params(
&self,
enum_id: EnumId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn enum_generic_params( &self, enum_id: EnumId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn enum_generic_params_data(
&self,
enum_id: EnumId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn enum_generic_params_data( &self, enum_id: EnumId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn enum_attributes(
&self,
enum_id: EnumId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn enum_attributes( &self, enum_id: EnumId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn enum_declaration_resolver_data(
&self,
enum_id: EnumId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn enum_declaration_resolver_data( &self, enum_id: EnumId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_enum_definition_data(
&self,
enum_id: EnumId,
) -> Result<EnumDefinitionData, DiagnosticAdded>
fn priv_enum_definition_data( &self, enum_id: EnumId, ) -> Result<EnumDefinitionData, DiagnosticAdded>
source§fn enum_definition_diagnostics(
&self,
enum_id: EnumId,
) -> Diagnostics<SemanticDiagnostic>
fn enum_definition_diagnostics( &self, enum_id: EnumId, ) -> Diagnostics<SemanticDiagnostic>
source§fn enum_variants(
&self,
enum_id: EnumId,
) -> Result<OrderedHashMap<SmolStr, VariantId>, DiagnosticAdded>
fn enum_variants( &self, enum_id: EnumId, ) -> Result<OrderedHashMap<SmolStr, VariantId>, DiagnosticAdded>
source§fn variant_semantic(
&self,
enum_id: EnumId,
variant_id: VariantId,
) -> Result<Variant, DiagnosticAdded>
fn variant_semantic( &self, enum_id: EnumId, variant_id: VariantId, ) -> Result<Variant, DiagnosticAdded>
source§fn enum_definition_resolver_data(
&self,
enum_id: EnumId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn enum_definition_resolver_data( &self, enum_id: EnumId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn module_type_alias_semantic_diagnostics(
&self,
module_type_alias_id: ModuleTypeAliasId,
) -> Diagnostics<SemanticDiagnostic>
fn module_type_alias_semantic_diagnostics( &self, module_type_alias_id: ModuleTypeAliasId, ) -> Diagnostics<SemanticDiagnostic>
source§fn module_type_alias_resolved_type(
&self,
module_type_alias_id: ModuleTypeAliasId,
) -> Result<TypeId, DiagnosticAdded>
fn module_type_alias_resolved_type( &self, module_type_alias_id: ModuleTypeAliasId, ) -> Result<TypeId, DiagnosticAdded>
source§fn module_type_alias_generic_params(
&self,
enum_id: ModuleTypeAliasId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn module_type_alias_generic_params( &self, enum_id: ModuleTypeAliasId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn module_type_alias_resolver_data(
&self,
module_type_alias_id: ModuleTypeAliasId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn module_type_alias_resolver_data( &self, module_type_alias_id: ModuleTypeAliasId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_module_type_alias_generic_params_data(
&self,
enum_id: ModuleTypeAliasId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn priv_module_type_alias_generic_params_data( &self, enum_id: ModuleTypeAliasId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn priv_module_type_alias_semantic_data(
&self,
module_type_alias_id: ModuleTypeAliasId,
in_cycle: bool,
) -> Result<ModuleTypeAliasData, DiagnosticAdded>
fn priv_module_type_alias_semantic_data( &self, module_type_alias_id: ModuleTypeAliasId, in_cycle: bool, ) -> Result<ModuleTypeAliasData, DiagnosticAdded>
source§fn impl_alias_impl_def(
&self,
impl_alias_id: ImplAliasId,
) -> Result<ImplDefId, DiagnosticAdded>
fn impl_alias_impl_def( &self, impl_alias_id: ImplAliasId, ) -> Result<ImplDefId, DiagnosticAdded>
source§fn priv_impl_alias_semantic_data(
&self,
impl_alias_id: ImplAliasId,
in_cycle: bool,
) -> Result<ImplAliasData, DiagnosticAdded>
fn priv_impl_alias_semantic_data( &self, impl_alias_id: ImplAliasId, in_cycle: bool, ) -> Result<ImplAliasData, DiagnosticAdded>
source§fn impl_alias_semantic_diagnostics(
&self,
impl_alias_id: ImplAliasId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_alias_semantic_diagnostics( &self, impl_alias_id: ImplAliasId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_alias_resolved_impl(
&self,
impl_alias_id: ImplAliasId,
) -> Result<ImplId, DiagnosticAdded>
fn impl_alias_resolved_impl( &self, impl_alias_id: ImplAliasId, ) -> Result<ImplId, DiagnosticAdded>
source§fn impl_alias_generic_params(
&self,
impl_alias_id: ImplAliasId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn impl_alias_generic_params( &self, impl_alias_id: ImplAliasId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn impl_alias_generic_params_data(
&self,
impl_alias_id: ImplAliasId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn impl_alias_generic_params_data( &self, impl_alias_id: ImplAliasId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn impl_alias_resolver_data(
&self,
impl_alias_id: ImplAliasId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_alias_resolver_data( &self, impl_alias_id: ImplAliasId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn impl_alias_attributes(
&self,
impl_def_id: ImplAliasId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn impl_alias_attributes( &self, impl_def_id: ImplAliasId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn trait_semantic_declaration_diagnostics(
&self,
trait_id: TraitId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_semantic_declaration_diagnostics( &self, trait_id: TraitId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_generic_params(
&self,
trait_id: TraitId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn trait_generic_params( &self, trait_id: TraitId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn trait_generic_params_data(
&self,
trait_id: TraitId,
in_cycle: bool,
) -> Result<GenericParamsData, DiagnosticAdded>
fn trait_generic_params_data( &self, trait_id: TraitId, in_cycle: bool, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn trait_attributes(
&self,
trait_id: TraitId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn trait_attributes( &self, trait_id: TraitId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn trait_resolver_data(
&self,
trait_id: TraitId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn trait_resolver_data( &self, trait_id: TraitId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_trait_declaration_data(
&self,
trait_id: TraitId,
) -> Result<TraitDeclarationData, DiagnosticAdded>
fn priv_trait_declaration_data( &self, trait_id: TraitId, ) -> Result<TraitDeclarationData, DiagnosticAdded>
source§fn trait_semantic_definition_diagnostics(
&self,
trait_id: TraitId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_semantic_definition_diagnostics( &self, trait_id: TraitId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_required_item_names(
&self,
trait_id: TraitId,
) -> Result<OrderedHashSet<SmolStr>, DiagnosticAdded>
fn trait_required_item_names( &self, trait_id: TraitId, ) -> Result<OrderedHashSet<SmolStr>, DiagnosticAdded>
source§fn trait_item_by_name(
&self,
trait_id: TraitId,
name: SmolStr,
) -> Result<Option<TraitItemId>, DiagnosticAdded>
fn trait_item_by_name( &self, trait_id: TraitId, name: SmolStr, ) -> Result<Option<TraitItemId>, DiagnosticAdded>
name
, if exists.source§fn trait_all_used_items(
&self,
trait_id: TraitId,
) -> Result<Arc<OrderedHashSet<LookupItemId>>, DiagnosticAdded>
fn trait_all_used_items( &self, trait_id: TraitId, ) -> Result<Arc<OrderedHashSet<LookupItemId>>, DiagnosticAdded>
source§fn trait_functions(
&self,
trait_id: TraitId,
) -> Result<OrderedHashMap<SmolStr, TraitFunctionId>, DiagnosticAdded>
fn trait_functions( &self, trait_id: TraitId, ) -> Result<OrderedHashMap<SmolStr, TraitFunctionId>, DiagnosticAdded>
source§fn trait_function_by_name(
&self,
trait_id: TraitId,
name: SmolStr,
) -> Result<Option<TraitFunctionId>, DiagnosticAdded>
fn trait_function_by_name( &self, trait_id: TraitId, name: SmolStr, ) -> Result<Option<TraitFunctionId>, DiagnosticAdded>
source§fn trait_types(
&self,
trait_id: TraitId,
) -> Result<OrderedHashMap<SmolStr, TraitTypeId>, DiagnosticAdded>
fn trait_types( &self, trait_id: TraitId, ) -> Result<OrderedHashMap<SmolStr, TraitTypeId>, DiagnosticAdded>
source§fn trait_type_by_name(
&self,
trait_id: TraitId,
name: SmolStr,
) -> Result<Option<TraitTypeId>, DiagnosticAdded>
fn trait_type_by_name( &self, trait_id: TraitId, name: SmolStr, ) -> Result<Option<TraitTypeId>, DiagnosticAdded>
source§fn trait_constants(
&self,
trait_id: TraitId,
) -> Result<OrderedHashMap<SmolStr, TraitConstantId>, DiagnosticAdded>
fn trait_constants( &self, trait_id: TraitId, ) -> Result<OrderedHashMap<SmolStr, TraitConstantId>, DiagnosticAdded>
source§fn trait_constant_by_name(
&self,
trait_id: TraitId,
name: SmolStr,
) -> Result<Option<TraitConstantId>, DiagnosticAdded>
fn trait_constant_by_name( &self, trait_id: TraitId, name: SmolStr, ) -> Result<Option<TraitConstantId>, DiagnosticAdded>
source§fn trait_impls(
&self,
trait_id: TraitId,
) -> Result<OrderedHashMap<SmolStr, TraitImplId>, DiagnosticAdded>
fn trait_impls( &self, trait_id: TraitId, ) -> Result<OrderedHashMap<SmolStr, TraitImplId>, DiagnosticAdded>
source§fn trait_impl_by_name(
&self,
trait_id: TraitId,
name: SmolStr,
) -> Result<Option<TraitImplId>, DiagnosticAdded>
fn trait_impl_by_name( &self, trait_id: TraitId, name: SmolStr, ) -> Result<Option<TraitImplId>, DiagnosticAdded>
source§fn priv_trait_definition_data(
&self,
trait_id: TraitId,
) -> Result<TraitDefinitionData, DiagnosticAdded>
fn priv_trait_definition_data( &self, trait_id: TraitId, ) -> Result<TraitDefinitionData, DiagnosticAdded>
source§fn trait_type_diagnostics(
&self,
trait_type_id: TraitTypeId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_type_diagnostics( &self, trait_type_id: TraitTypeId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_type_generic_params(
&self,
trait_type_id: TraitTypeId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn trait_type_generic_params( &self, trait_type_id: TraitTypeId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn trait_type_attributes(
&self,
trait_type_id: TraitTypeId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn trait_type_attributes( &self, trait_type_id: TraitTypeId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn trait_type_resolver_data(
&self,
trait_type_id: TraitTypeId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn trait_type_resolver_data( &self, trait_type_id: TraitTypeId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_trait_type_generic_params_data(
&self,
trait_type_id: TraitTypeId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn priv_trait_type_generic_params_data( &self, trait_type_id: TraitTypeId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn priv_trait_type_data(
&self,
type_id: TraitTypeId,
) -> Result<TraitItemTypeData, DiagnosticAdded>
fn priv_trait_type_data( &self, type_id: TraitTypeId, ) -> Result<TraitItemTypeData, DiagnosticAdded>
source§fn trait_constant_diagnostics(
&self,
trait_constant: TraitConstantId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_constant_diagnostics( &self, trait_constant: TraitConstantId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_constant_attributes(
&self,
trait_constant: TraitConstantId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn trait_constant_attributes( &self, trait_constant: TraitConstantId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn trait_constant_type(
&self,
trait_type_id: TraitConstantId,
) -> Result<TypeId, DiagnosticAdded>
fn trait_constant_type( &self, trait_type_id: TraitConstantId, ) -> Result<TypeId, DiagnosticAdded>
source§fn trait_constant_resolver_data(
&self,
trait_constant: TraitConstantId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn trait_constant_resolver_data( &self, trait_constant: TraitConstantId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_trait_constant_data(
&self,
trait_constant: TraitConstantId,
) -> Result<TraitItemConstantData, DiagnosticAdded>
fn priv_trait_constant_data( &self, trait_constant: TraitConstantId, ) -> Result<TraitItemConstantData, DiagnosticAdded>
source§fn concrete_trait_constant_type(
&self,
concrete_trait_constant_id: ConcreteTraitConstantId,
) -> Result<TypeId, DiagnosticAdded>
fn concrete_trait_constant_type( &self, concrete_trait_constant_id: ConcreteTraitConstantId, ) -> Result<TypeId, DiagnosticAdded>
source§fn trait_impl_diagnostics(
&self,
trait_impl: TraitImplId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_impl_diagnostics( &self, trait_impl: TraitImplId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_impl_attributes(
&self,
trait_impl: TraitImplId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn trait_impl_attributes( &self, trait_impl: TraitImplId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn trait_impl_concrete_trait(
&self,
trait_impl_id: TraitImplId,
) -> Result<ConcreteTraitId, DiagnosticAdded>
fn trait_impl_concrete_trait( &self, trait_impl_id: TraitImplId, ) -> Result<ConcreteTraitId, DiagnosticAdded>
source§fn trait_impl_resolver_data(
&self,
trait_impl: TraitImplId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn trait_impl_resolver_data( &self, trait_impl: TraitImplId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_trait_impl_data(
&self,
trait_impl: TraitImplId,
) -> Result<TraitItemImplData, DiagnosticAdded>
fn priv_trait_impl_data( &self, trait_impl: TraitImplId, ) -> Result<TraitItemImplData, DiagnosticAdded>
source§fn concrete_trait_impl_concrete_trait(
&self,
concrete_trait_impl_id: ConcreteTraitImplId,
) -> Result<ConcreteTraitId, DiagnosticAdded>
fn concrete_trait_impl_concrete_trait( &self, concrete_trait_impl_id: ConcreteTraitImplId, ) -> Result<ConcreteTraitId, DiagnosticAdded>
source§fn trait_function_declaration_diagnostics(
&self,
trait_function_id: TraitFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_function_declaration_diagnostics( &self, trait_function_id: TraitFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_function_signature(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Signature, DiagnosticAdded>
fn trait_function_signature( &self, trait_function_id: TraitFunctionId, ) -> Result<Signature, DiagnosticAdded>
source§fn trait_function_generic_params(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn trait_function_generic_params( &self, trait_function_id: TraitFunctionId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn priv_trait_function_generic_params_data(
&self,
trait_function_id: TraitFunctionId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn priv_trait_function_generic_params_data( &self, trait_function_id: TraitFunctionId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn trait_function_attributes(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn trait_function_attributes( &self, trait_function_id: TraitFunctionId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn trait_function_resolver_data(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn trait_function_resolver_data( &self, trait_function_id: TraitFunctionId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn trait_function_declaration_inline_config(
&self,
trait_function_id: TraitFunctionId,
) -> Result<InlineConfiguration, DiagnosticAdded>
fn trait_function_declaration_inline_config( &self, trait_function_id: TraitFunctionId, ) -> Result<InlineConfiguration, DiagnosticAdded>
source§fn trait_function_declaration_implicit_precedence(
&self,
trait_function_id: TraitFunctionId,
) -> Result<ImplicitPrecedence, DiagnosticAdded>
fn trait_function_declaration_implicit_precedence( &self, trait_function_id: TraitFunctionId, ) -> Result<ImplicitPrecedence, DiagnosticAdded>
source§fn trait_function_declaration_implicits(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn trait_function_declaration_implicits( &self, trait_function_id: TraitFunctionId, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§fn priv_trait_function_declaration_data(
&self,
function_id: TraitFunctionId,
) -> Result<FunctionDeclarationData, DiagnosticAdded>
fn priv_trait_function_declaration_data( &self, function_id: TraitFunctionId, ) -> Result<FunctionDeclarationData, DiagnosticAdded>
source§fn trait_function_body_diagnostics(
&self,
trait_function_id: TraitFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn trait_function_body_diagnostics( &self, trait_function_id: TraitFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn trait_function_body(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Option<Arc<FunctionBody>>, DiagnosticAdded>
fn trait_function_body( &self, trait_function_id: TraitFunctionId, ) -> Result<Option<Arc<FunctionBody>>, DiagnosticAdded>
source§fn priv_trait_function_body_data(
&self,
trait_function_id: TraitFunctionId,
) -> Result<Option<FunctionBodyData>, DiagnosticAdded>
fn priv_trait_function_body_data( &self, trait_function_id: TraitFunctionId, ) -> Result<Option<FunctionBodyData>, DiagnosticAdded>
source§fn concrete_trait_function_generic_params(
&self,
concrete_trait_function_id: ConcreteTraitGenericFunctionId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn concrete_trait_function_generic_params( &self, concrete_trait_function_id: ConcreteTraitGenericFunctionId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn concrete_trait_function_signature(
&self,
concrete_trait_function_id: ConcreteTraitGenericFunctionId,
) -> Result<Signature, DiagnosticAdded>
fn concrete_trait_function_signature( &self, concrete_trait_function_id: ConcreteTraitGenericFunctionId, ) -> Result<Signature, DiagnosticAdded>
source§fn module_impl_ids_for_trait_filter(
&self,
module_id: ModuleId,
trait_lookup_constraint: TraitFilter,
) -> Result<Vec<UninferredImpl>, DiagnosticAdded>
fn module_impl_ids_for_trait_filter( &self, module_id: ModuleId, trait_lookup_constraint: TraitFilter, ) -> Result<Vec<UninferredImpl>, DiagnosticAdded>
fn impl_impl_ids_for_trait_filter( &self, impl_id: ImplId, trait_lookup_constraint: TraitFilter, ) -> Result<Vec<UninferredImpl>, DiagnosticAdded>
fn canonic_trait_solutions( &self, canonical_trait: CanonicalTrait, lookup_context: ImplLookupContext, ) -> Result<SolutionSet<CanonicalImpl>, InferenceError>
source§fn impl_semantic_declaration_diagnostics(
&self,
impl_def_id: ImplDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_semantic_declaration_diagnostics( &self, impl_def_id: ImplDefId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_def_generic_params_data(
&self,
impl_def_id: ImplDefId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn impl_def_generic_params_data( &self, impl_def_id: ImplDefId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn impl_def_generic_params(
&self,
impl_def_id: ImplDefId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn impl_def_generic_params( &self, impl_def_id: ImplDefId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn impl_def_resolver_data(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_def_resolver_data( &self, impl_def_id: ImplDefId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn impl_def_concrete_trait(
&self,
impl_def_id: ImplDefId,
) -> Result<ConcreteTraitId, DiagnosticAdded>
fn impl_def_concrete_trait( &self, impl_def_id: ImplDefId, ) -> Result<ConcreteTraitId, DiagnosticAdded>
source§fn impl_def_substitution(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<GenericSubstitution>, DiagnosticAdded>
fn impl_def_substitution( &self, impl_def_id: ImplDefId, ) -> Result<Arc<GenericSubstitution>, DiagnosticAdded>
source§fn impl_def_attributes(
&self,
impl_def_id: ImplDefId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn impl_def_attributes( &self, impl_def_id: ImplDefId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn impl_concrete_trait(
&self,
impl_id: ImplId,
) -> Result<ConcreteTraitId, DiagnosticAdded>
fn impl_concrete_trait( &self, impl_id: ImplId, ) -> Result<ConcreteTraitId, DiagnosticAdded>
source§fn impl_def_trait(
&self,
impl_def_id: ImplDefId,
) -> Result<TraitId, DiagnosticAdded>
fn impl_def_trait( &self, impl_def_id: ImplDefId, ) -> Result<TraitId, DiagnosticAdded>
of
is not
a trait.source§fn priv_impl_declaration_data(
&self,
impl_def_id: ImplDefId,
) -> Result<ImplDeclarationData, DiagnosticAdded>
fn priv_impl_declaration_data( &self, impl_def_id: ImplDefId, ) -> Result<ImplDeclarationData, DiagnosticAdded>
source§fn impl_semantic_definition_diagnostics(
&self,
impl_def_id: ImplDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_semantic_definition_diagnostics( &self, impl_def_id: ImplDefId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_item_by_name(
&self,
impl_def_id: ImplDefId,
name: SmolStr,
) -> Result<Option<ImplItemId>, DiagnosticAdded>
fn impl_item_by_name( &self, impl_def_id: ImplDefId, name: SmolStr, ) -> Result<Option<ImplItemId>, DiagnosticAdded>
name
, if exists.source§fn impl_implicit_impl_by_name(
&self,
impl_def_id: ImplDefId,
name: SmolStr,
) -> Result<Option<TraitImplId>, DiagnosticAdded>
fn impl_implicit_impl_by_name( &self, impl_def_id: ImplDefId, name: SmolStr, ) -> Result<Option<TraitImplId>, DiagnosticAdded>
name
exists in trait and not in the impl.source§fn impl_all_used_items(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<OrderedHashSet<LookupItemId>>, DiagnosticAdded>
fn impl_all_used_items( &self, impl_def_id: ImplDefId, ) -> Result<Arc<OrderedHashSet<LookupItemId>>, DiagnosticAdded>
source§fn impl_types(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<OrderedHashMap<ImplTypeDefId, ItemTypeAlias>>, DiagnosticAdded>
fn impl_types( &self, impl_def_id: ImplDefId, ) -> Result<Arc<OrderedHashMap<ImplTypeDefId, ItemTypeAlias>>, DiagnosticAdded>
source§fn impl_type_ids(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<[ImplTypeDefId]>, DiagnosticAdded>
fn impl_type_ids( &self, impl_def_id: ImplDefId, ) -> Result<Arc<[ImplTypeDefId]>, DiagnosticAdded>
source§fn impl_type_by_id(
&self,
impl_type_id: ImplTypeDefId,
) -> Result<Option<ItemTypeAlias>, DiagnosticAdded>
fn impl_type_by_id( &self, impl_type_id: ImplTypeDefId, ) -> Result<Option<ItemTypeAlias>, DiagnosticAdded>
source§fn impl_type_by_trait_type(
&self,
impl_def_id: ImplDefId,
trait_type_id: TraitTypeId,
) -> Result<ImplTypeDefId, DiagnosticAdded>
fn impl_type_by_trait_type( &self, impl_def_id: ImplDefId, trait_type_id: TraitTypeId, ) -> Result<ImplTypeDefId, DiagnosticAdded>
source§fn impl_constants(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<OrderedHashMap<ImplConstantDefId, ItemConstant>>, DiagnosticAdded>
fn impl_constants( &self, impl_def_id: ImplDefId, ) -> Result<Arc<OrderedHashMap<ImplConstantDefId, ItemConstant>>, DiagnosticAdded>
source§fn impl_impls(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<OrderedHashMap<ImplImplDefId, ItemImplAlias>>, DiagnosticAdded>
fn impl_impls( &self, impl_def_id: ImplDefId, ) -> Result<Arc<OrderedHashMap<ImplImplDefId, ItemImplAlias>>, DiagnosticAdded>
source§fn impl_impl_ids(
&self,
impl_def_id: ImplDefId,
) -> Result<Arc<[ImplImplDefId]>, DiagnosticAdded>
fn impl_impl_ids( &self, impl_def_id: ImplDefId, ) -> Result<Arc<[ImplImplDefId]>, DiagnosticAdded>
source§fn impl_impl_by_id(
&self,
impl_impl_id: ImplImplDefId,
) -> Result<Option<ItemImplAlias>, DiagnosticAdded>
fn impl_impl_by_id( &self, impl_impl_id: ImplImplDefId, ) -> Result<Option<ItemImplAlias>, DiagnosticAdded>
source§fn impl_impl_by_trait_impl(
&self,
impl_def_id: ImplDefId,
trait_impl_id: TraitImplId,
) -> Result<ImplImplDefId, DiagnosticAdded>
fn impl_impl_by_trait_impl( &self, impl_def_id: ImplDefId, trait_impl_id: TraitImplId, ) -> Result<ImplImplDefId, DiagnosticAdded>
source§fn is_implicit_impl_impl(
&self,
impl_def_id: ImplDefId,
trait_impl_id: TraitImplId,
) -> Result<bool, DiagnosticAdded>
fn is_implicit_impl_impl( &self, impl_def_id: ImplDefId, trait_impl_id: TraitImplId, ) -> Result<bool, DiagnosticAdded>
trait_impl_id
is an implicit impl in impl_def_id
.source§fn impl_constant_by_trait_constant(
&self,
impl_def_id: ImplDefId,
trait_constant_id: TraitConstantId,
) -> Result<ImplConstantDefId, DiagnosticAdded>
fn impl_constant_by_trait_constant( &self, impl_def_id: ImplDefId, trait_constant_id: TraitConstantId, ) -> Result<ImplConstantDefId, DiagnosticAdded>
source§fn impl_functions(
&self,
impl_def_id: ImplDefId,
) -> Result<OrderedHashMap<SmolStr, ImplFunctionId>, DiagnosticAdded>
fn impl_functions( &self, impl_def_id: ImplDefId, ) -> Result<OrderedHashMap<SmolStr, ImplFunctionId>, DiagnosticAdded>
source§fn impl_function_by_trait_function(
&self,
impl_def_id: ImplDefId,
trait_function_id: TraitFunctionId,
) -> Result<Option<ImplFunctionId>, DiagnosticAdded>
fn impl_function_by_trait_function( &self, impl_def_id: ImplDefId, trait_function_id: TraitFunctionId, ) -> Result<Option<ImplFunctionId>, DiagnosticAdded>
source§fn priv_impl_definition_data(
&self,
impl_def_id: ImplDefId,
) -> Result<ImplDefinitionData, DiagnosticAdded>
fn priv_impl_definition_data( &self, impl_def_id: ImplDefId, ) -> Result<ImplDefinitionData, DiagnosticAdded>
source§fn priv_impl_is_fully_concrete(&self, impl_id: ImplId) -> bool
fn priv_impl_is_fully_concrete(&self, impl_id: ImplId) -> bool
source§fn priv_impl_is_var_free(&self, impl_id: ImplId) -> bool
fn priv_impl_is_var_free(&self, impl_id: ImplId) -> bool
source§fn impl_type_def_semantic_diagnostics(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_type_def_semantic_diagnostics( &self, impl_type_def_id: ImplTypeDefId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_type_def_resolved_type(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Result<TypeId, DiagnosticAdded>
fn impl_type_def_resolved_type( &self, impl_type_def_id: ImplTypeDefId, ) -> Result<TypeId, DiagnosticAdded>
source§fn impl_type_def_generic_params(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn impl_type_def_generic_params( &self, impl_type_def_id: ImplTypeDefId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn impl_type_def_attributes(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn impl_type_def_attributes( &self, impl_type_def_id: ImplTypeDefId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn impl_type_def_resolver_data(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_type_def_resolver_data( &self, impl_type_def_id: ImplTypeDefId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn impl_type_def_trait_type(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Result<TraitTypeId, DiagnosticAdded>
fn impl_type_def_trait_type( &self, impl_type_def_id: ImplTypeDefId, ) -> Result<TraitTypeId, DiagnosticAdded>
source§fn priv_impl_type_semantic_data(
&self,
impl_type_def_id: ImplTypeDefId,
in_cycle: bool,
) -> Result<ImplItemTypeData, DiagnosticAdded>
fn priv_impl_type_semantic_data( &self, impl_type_def_id: ImplTypeDefId, in_cycle: bool, ) -> Result<ImplItemTypeData, DiagnosticAdded>
source§fn priv_impl_type_def_generic_params_data(
&self,
impl_type_def_id: ImplTypeDefId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn priv_impl_type_def_generic_params_data( &self, impl_type_def_id: ImplTypeDefId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn impl_type_concrete_implized(
&self,
impl_type_def_id: ImplTypeId,
) -> Result<TypeId, DiagnosticAdded>
fn impl_type_concrete_implized( &self, impl_type_def_id: ImplTypeId, ) -> Result<TypeId, DiagnosticAdded>
source§fn impl_constant_def_semantic_diagnostics(
&self,
impl_constant_def_id: ImplConstantDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_constant_def_semantic_diagnostics( &self, impl_constant_def_id: ImplConstantDefId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_constant_def_value(
&self,
impl_constant_def_id: ImplConstantDefId,
) -> Result<ConstValueId, DiagnosticAdded>
fn impl_constant_def_value( &self, impl_constant_def_id: ImplConstantDefId, ) -> Result<ConstValueId, DiagnosticAdded>
source§fn impl_constant_def_resolver_data(
&self,
impl_constant_def_id: ImplConstantDefId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_constant_def_resolver_data( &self, impl_constant_def_id: ImplConstantDefId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn impl_constant_def_trait_constant(
&self,
impl_constant_def_id: ImplConstantDefId,
) -> Result<TraitConstantId, DiagnosticAdded>
fn impl_constant_def_trait_constant( &self, impl_constant_def_id: ImplConstantDefId, ) -> Result<TraitConstantId, DiagnosticAdded>
source§fn priv_impl_constant_semantic_data(
&self,
impl_constant_def_id: ImplConstantDefId,
in_cycle: bool,
) -> Result<ImplItemConstantData, DiagnosticAdded>
fn priv_impl_constant_semantic_data( &self, impl_constant_def_id: ImplConstantDefId, in_cycle: bool, ) -> Result<ImplItemConstantData, DiagnosticAdded>
source§fn impl_constant_implized_by_context(
&self,
impl_constant_id: ImplConstantId,
impl_def_id: ImplDefId,
) -> Result<ConstValueId, DiagnosticAdded>
fn impl_constant_implized_by_context( &self, impl_constant_id: ImplConstantId, impl_def_id: ImplDefId, ) -> Result<ConstValueId, DiagnosticAdded>
source§fn impl_constant_concrete_implized_value(
&self,
impl_constant_id: ImplConstantId,
) -> Result<ConstValueId, DiagnosticAdded>
fn impl_constant_concrete_implized_value( &self, impl_constant_id: ImplConstantId, ) -> Result<ConstValueId, DiagnosticAdded>
source§fn impl_constant_concrete_implized_type(
&self,
impl_constant_id: ImplConstantId,
) -> Result<TypeId, DiagnosticAdded>
fn impl_constant_concrete_implized_type( &self, impl_constant_id: ImplConstantId, ) -> Result<TypeId, DiagnosticAdded>
source§fn impl_impl_def_semantic_diagnostics(
&self,
impl_impl_def_id: ImplImplDefId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_impl_def_semantic_diagnostics( &self, impl_impl_def_id: ImplImplDefId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_impl_def_resolver_data(
&self,
impl_impl_def_id: ImplImplDefId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_impl_def_resolver_data( &self, impl_impl_def_id: ImplImplDefId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn impl_impl_def_trait_impl(
&self,
impl_impl_def_id: ImplImplDefId,
) -> Result<TraitImplId, DiagnosticAdded>
fn impl_impl_def_trait_impl( &self, impl_impl_def_id: ImplImplDefId, ) -> Result<TraitImplId, DiagnosticAdded>
source§fn impl_impl_def_impl(
&self,
impl_impl_def_id: ImplImplDefId,
in_cycle: bool,
) -> Result<ImplId, DiagnosticAdded>
fn impl_impl_def_impl( &self, impl_impl_def_id: ImplImplDefId, in_cycle: bool, ) -> Result<ImplId, DiagnosticAdded>
source§fn priv_impl_impl_semantic_data(
&self,
impl_impl_def_id: ImplImplDefId,
in_cycle: bool,
) -> Result<ImplItemImplData, DiagnosticAdded>
fn priv_impl_impl_semantic_data( &self, impl_impl_def_id: ImplImplDefId, in_cycle: bool, ) -> Result<ImplItemImplData, DiagnosticAdded>
source§fn priv_impl_impl_def_generic_params_data(
&self,
impl_impl_def_id: ImplImplDefId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn priv_impl_impl_def_generic_params_data( &self, impl_impl_def_id: ImplImplDefId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn implicit_impl_impl_semantic_diagnostics(
&self,
impl_def_id: ImplDefId,
trait_impl_id: TraitImplId,
) -> Diagnostics<SemanticDiagnostic>
fn implicit_impl_impl_semantic_diagnostics( &self, impl_def_id: ImplDefId, trait_impl_id: TraitImplId, ) -> Diagnostics<SemanticDiagnostic>
source§fn implicit_impl_impl_impl(
&self,
impl_def_id: ImplDefId,
trait_impl_id: TraitImplId,
in_cycle: bool,
) -> Result<ImplId, DiagnosticAdded>
fn implicit_impl_impl_impl( &self, impl_def_id: ImplDefId, trait_impl_id: TraitImplId, in_cycle: bool, ) -> Result<ImplId, DiagnosticAdded>
fn priv_implicit_impl_impl_semantic_data( &self, impl_def_id: ImplDefId, trait_impl_id: TraitImplId, in_cycle: bool, ) -> Result<ImplicitImplImplData, DiagnosticAdded>
source§fn impl_impl_implized_by_context(
&self,
impl_impl_id: ImplImplId,
impl_def_id: ImplDefId,
in_cycle: bool,
) -> Result<ImplId, DiagnosticAdded>
fn impl_impl_implized_by_context( &self, impl_impl_id: ImplImplId, impl_def_id: ImplDefId, in_cycle: bool, ) -> Result<ImplId, DiagnosticAdded>
source§fn impl_impl_concrete_implized(
&self,
impl_impl_id: ImplImplId,
) -> Result<ImplId, DiagnosticAdded>
fn impl_impl_concrete_implized( &self, impl_impl_id: ImplImplId, ) -> Result<ImplId, DiagnosticAdded>
source§fn impl_impl_concrete_trait(
&self,
impl_impl_id: ImplImplId,
) -> Result<ConcreteTraitId, DiagnosticAdded>
fn impl_impl_concrete_trait( &self, impl_impl_id: ImplImplId, ) -> Result<ConcreteTraitId, DiagnosticAdded>
source§fn impl_function_declaration_diagnostics(
&self,
impl_function_id: ImplFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_function_declaration_diagnostics( &self, impl_function_id: ImplFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_function_signature(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Signature, DiagnosticAdded>
fn impl_function_signature( &self, impl_function_id: ImplFunctionId, ) -> Result<Signature, DiagnosticAdded>
source§fn impl_function_generic_params(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn impl_function_generic_params( &self, impl_function_id: ImplFunctionId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn priv_impl_function_generic_params_data(
&self,
impl_function_id: ImplFunctionId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn priv_impl_function_generic_params_data( &self, impl_function_id: ImplFunctionId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn impl_function_attributes(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn impl_function_attributes( &self, impl_function_id: ImplFunctionId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn impl_function_resolver_data(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_function_resolver_data( &self, impl_function_id: ImplFunctionId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn impl_function_declaration_inline_config(
&self,
impl_function_id: ImplFunctionId,
) -> Result<InlineConfiguration, DiagnosticAdded>
fn impl_function_declaration_inline_config( &self, impl_function_id: ImplFunctionId, ) -> Result<InlineConfiguration, DiagnosticAdded>
source§fn impl_function_declaration_implicit_precedence(
&self,
impl_function_id: ImplFunctionId,
) -> Result<ImplicitPrecedence, DiagnosticAdded>
fn impl_function_declaration_implicit_precedence( &self, impl_function_id: ImplFunctionId, ) -> Result<ImplicitPrecedence, DiagnosticAdded>
source§fn impl_function_declaration_implicits(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn impl_function_declaration_implicits( &self, impl_function_id: ImplFunctionId, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§fn impl_function_trait_function(
&self,
impl_function_id: ImplFunctionId,
) -> Result<TraitFunctionId, DiagnosticAdded>
fn impl_function_trait_function( &self, impl_function_id: ImplFunctionId, ) -> Result<TraitFunctionId, DiagnosticAdded>
source§fn priv_impl_function_declaration_data(
&self,
impl_function_id: ImplFunctionId,
) -> Result<ImplFunctionDeclarationData, DiagnosticAdded>
fn priv_impl_function_declaration_data( &self, impl_function_id: ImplFunctionId, ) -> Result<ImplFunctionDeclarationData, DiagnosticAdded>
source§fn impl_function_body_diagnostics(
&self,
impl_function_id: ImplFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn impl_function_body_diagnostics( &self, impl_function_id: ImplFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn impl_function_body(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Arc<FunctionBody>, DiagnosticAdded>
fn impl_function_body( &self, impl_function_id: ImplFunctionId, ) -> Result<Arc<FunctionBody>, DiagnosticAdded>
source§fn impl_function_body_resolver_data(
&self,
impl_function_id: ImplFunctionId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn impl_function_body_resolver_data( &self, impl_function_id: ImplFunctionId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_impl_function_body_data(
&self,
impl_function_id: ImplFunctionId,
) -> Result<FunctionBodyData, DiagnosticAdded>
fn priv_impl_function_body_data( &self, impl_function_id: ImplFunctionId, ) -> Result<FunctionBodyData, DiagnosticAdded>
source§fn trait_type_implized_by_context(
&self,
trait_type_def_id: TraitTypeId,
impl_def_id: ImplDefId,
) -> Result<TypeId, DiagnosticAdded>
fn trait_type_implized_by_context( &self, trait_type_def_id: TraitTypeId, impl_def_id: ImplDefId, ) -> Result<TypeId, DiagnosticAdded>
source§fn free_function_declaration_diagnostics(
&self,
free_function_id: FreeFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn free_function_declaration_diagnostics( &self, free_function_id: FreeFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn free_function_signature(
&self,
free_function_id: FreeFunctionId,
) -> Result<Signature, DiagnosticAdded>
fn free_function_signature( &self, free_function_id: FreeFunctionId, ) -> Result<Signature, DiagnosticAdded>
source§fn free_function_declaration_implicits(
&self,
free_function_id: FreeFunctionId,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn free_function_declaration_implicits( &self, free_function_id: FreeFunctionId, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§fn free_function_declaration_implicit_precedence(
&self,
free_function_id: FreeFunctionId,
) -> Result<ImplicitPrecedence, DiagnosticAdded>
fn free_function_declaration_implicit_precedence( &self, free_function_id: FreeFunctionId, ) -> Result<ImplicitPrecedence, DiagnosticAdded>
source§fn free_function_generic_params(
&self,
free_function_id: FreeFunctionId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn free_function_generic_params( &self, free_function_id: FreeFunctionId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn free_function_generic_params_data(
&self,
free_function_id: FreeFunctionId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn free_function_generic_params_data( &self, free_function_id: FreeFunctionId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn free_function_declaration_resolver_data(
&self,
free_function_id: FreeFunctionId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn free_function_declaration_resolver_data( &self, free_function_id: FreeFunctionId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn free_function_declaration_inline_config(
&self,
free_function_id: FreeFunctionId,
) -> Result<InlineConfiguration, DiagnosticAdded>
fn free_function_declaration_inline_config( &self, free_function_id: FreeFunctionId, ) -> Result<InlineConfiguration, DiagnosticAdded>
source§fn priv_free_function_declaration_data(
&self,
function_id: FreeFunctionId,
) -> Result<FunctionDeclarationData, DiagnosticAdded>
fn priv_free_function_declaration_data( &self, function_id: FreeFunctionId, ) -> Result<FunctionDeclarationData, DiagnosticAdded>
source§fn free_function_body_diagnostics(
&self,
free_function_id: FreeFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn free_function_body_diagnostics( &self, free_function_id: FreeFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn free_function_body_resolver_data(
&self,
free_function_id: FreeFunctionId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn free_function_body_resolver_data( &self, free_function_id: FreeFunctionId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_free_function_body_data(
&self,
free_function_id: FreeFunctionId,
) -> Result<FunctionBodyData, DiagnosticAdded>
fn priv_free_function_body_data( &self, free_function_id: FreeFunctionId, ) -> Result<FunctionBodyData, DiagnosticAdded>
source§fn function_declaration_diagnostics(
&self,
function_id: FunctionWithBodyId,
) -> Diagnostics<SemanticDiagnostic>
fn function_declaration_diagnostics( &self, function_id: FunctionWithBodyId, ) -> Diagnostics<SemanticDiagnostic>
source§fn function_declaration_inline_config(
&self,
function_id: FunctionWithBodyId,
) -> Result<InlineConfiguration, DiagnosticAdded>
fn function_declaration_inline_config( &self, function_id: FunctionWithBodyId, ) -> Result<InlineConfiguration, DiagnosticAdded>
source§fn function_declaration_implicit_precedence(
&self,
function_id: FunctionWithBodyId,
) -> Result<ImplicitPrecedence, DiagnosticAdded>
fn function_declaration_implicit_precedence( &self, function_id: FunctionWithBodyId, ) -> Result<ImplicitPrecedence, DiagnosticAdded>
source§fn function_with_body_signature(
&self,
function_id: FunctionWithBodyId,
) -> Result<Signature, DiagnosticAdded>
fn function_with_body_signature( &self, function_id: FunctionWithBodyId, ) -> Result<Signature, DiagnosticAdded>
source§fn function_with_body_generic_params(
&self,
function_id: FunctionWithBodyId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn function_with_body_generic_params( &self, function_id: FunctionWithBodyId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn function_with_body_attributes(
&self,
function_id: FunctionWithBodyId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn function_with_body_attributes( &self, function_id: FunctionWithBodyId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn function_body_diagnostics(
&self,
function_id: FunctionWithBodyId,
) -> Diagnostics<SemanticDiagnostic>
fn function_body_diagnostics( &self, function_id: FunctionWithBodyId, ) -> Diagnostics<SemanticDiagnostic>
source§fn function_body_expr(
&self,
function_id: FunctionWithBodyId,
) -> Result<Id<Expr>, DiagnosticAdded>
fn function_body_expr( &self, function_id: FunctionWithBodyId, ) -> Result<Id<Expr>, DiagnosticAdded>
source§fn function_body(
&self,
function_id: FunctionWithBodyId,
) -> Result<Arc<FunctionBody>, DiagnosticAdded>
fn function_body( &self, function_id: FunctionWithBodyId, ) -> Result<Arc<FunctionBody>, DiagnosticAdded>
source§fn priv_extern_function_declaration_data(
&self,
function_id: ExternFunctionId,
) -> Result<FunctionDeclarationData, DiagnosticAdded>
fn priv_extern_function_declaration_data( &self, function_id: ExternFunctionId, ) -> Result<FunctionDeclarationData, DiagnosticAdded>
source§fn extern_function_declaration_inline_config(
&self,
extern_function_id: ExternFunctionId,
) -> Result<InlineConfiguration, DiagnosticAdded>
fn extern_function_declaration_inline_config( &self, extern_function_id: ExternFunctionId, ) -> Result<InlineConfiguration, DiagnosticAdded>
source§fn extern_function_declaration_diagnostics(
&self,
extern_function_id: ExternFunctionId,
) -> Diagnostics<SemanticDiagnostic>
fn extern_function_declaration_diagnostics( &self, extern_function_id: ExternFunctionId, ) -> Diagnostics<SemanticDiagnostic>
source§fn extern_function_signature(
&self,
extern_function_id: ExternFunctionId,
) -> Result<Signature, DiagnosticAdded>
fn extern_function_signature( &self, extern_function_id: ExternFunctionId, ) -> Result<Signature, DiagnosticAdded>
source§fn extern_function_declaration_generic_params(
&self,
extern_function_id: ExternFunctionId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn extern_function_declaration_generic_params( &self, extern_function_id: ExternFunctionId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn extern_function_declaration_generic_params_data(
&self,
extern_function_id: ExternFunctionId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn extern_function_declaration_generic_params_data( &self, extern_function_id: ExternFunctionId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn extern_function_declaration_implicits(
&self,
extern_function_id: ExternFunctionId,
) -> Result<Vec<TypeId>, DiagnosticAdded>
fn extern_function_declaration_implicits( &self, extern_function_id: ExternFunctionId, ) -> Result<Vec<TypeId>, DiagnosticAdded>
source§fn extern_function_declaration_refs(
&self,
extern_function_id: ExternFunctionId,
) -> Result<Vec<Parameter>, DiagnosticAdded>
fn extern_function_declaration_refs( &self, extern_function_id: ExternFunctionId, ) -> Result<Vec<Parameter>, DiagnosticAdded>
source§fn extern_function_declaration_resolver_data(
&self,
extern_function_id: ExternFunctionId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn extern_function_declaration_resolver_data( &self, extern_function_id: ExternFunctionId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn priv_extern_type_declaration_data(
&self,
type_id: ExternTypeId,
) -> Result<ExternTypeDeclarationData, DiagnosticAdded>
fn priv_extern_type_declaration_data( &self, type_id: ExternTypeId, ) -> Result<ExternTypeDeclarationData, DiagnosticAdded>
source§fn extern_type_declaration_diagnostics(
&self,
extern_type_id: ExternTypeId,
) -> Diagnostics<SemanticDiagnostic>
fn extern_type_declaration_diagnostics( &self, extern_type_id: ExternTypeId, ) -> Diagnostics<SemanticDiagnostic>
source§fn extern_type_declaration_generic_params(
&self,
extern_type_id: ExternTypeId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn extern_type_declaration_generic_params( &self, extern_type_id: ExternTypeId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn extern_type_declaration_generic_params_data(
&self,
extern_type_id: ExternTypeId,
) -> Result<GenericParamsData, DiagnosticAdded>
fn extern_type_declaration_generic_params_data( &self, extern_type_id: ExternTypeId, ) -> Result<GenericParamsData, DiagnosticAdded>
source§fn extern_type_attributes(
&self,
extern_type_id: ExternTypeId,
) -> Result<Vec<Attribute>, DiagnosticAdded>
fn extern_type_attributes( &self, extern_type_id: ExternTypeId, ) -> Result<Vec<Attribute>, DiagnosticAdded>
source§fn function_title_signature(
&self,
function_title_id: FunctionTitleId,
) -> Result<Signature, DiagnosticAdded>
fn function_title_signature( &self, function_title_id: FunctionTitleId, ) -> Result<Signature, DiagnosticAdded>
source§fn function_title_generic_params(
&self,
function_title_id: FunctionTitleId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn function_title_generic_params( &self, function_title_id: FunctionTitleId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn concrete_function_signature(
&self,
function_id: FunctionId,
) -> Result<Signature, DiagnosticAdded>
fn concrete_function_signature( &self, function_id: FunctionId, ) -> Result<Signature, DiagnosticAdded>
source§fn generic_type_generic_params(
&self,
generic_type: GenericTypeId,
) -> Result<Vec<GenericParam>, DiagnosticAdded>
fn generic_type_generic_params( &self, generic_type: GenericTypeId, ) -> Result<Vec<GenericParam>, DiagnosticAdded>
source§fn generic_param_semantic(
&self,
generic_param: GenericParamId,
) -> Result<GenericParam, DiagnosticAdded>
fn generic_param_semantic( &self, generic_param: GenericParamId, ) -> Result<GenericParam, DiagnosticAdded>
source§fn generic_param_diagnostics(
&self,
generic_param: GenericParamId,
) -> Diagnostics<SemanticDiagnostic>
fn generic_param_diagnostics( &self, generic_param: GenericParamId, ) -> Diagnostics<SemanticDiagnostic>
source§fn generic_param_resolver_data(
&self,
generic_param: GenericParamId,
) -> Result<Arc<ResolverData>, DiagnosticAdded>
fn generic_param_resolver_data( &self, generic_param: GenericParamId, ) -> Result<Arc<ResolverData>, DiagnosticAdded>
source§fn generic_impl_param_trait(
&self,
generic_param_id: GenericParamId,
) -> Result<TraitId, DiagnosticAdded>
fn generic_impl_param_trait( &self, generic_param_id: GenericParamId, ) -> Result<TraitId, DiagnosticAdded>
source§fn priv_generic_param_data(
&self,
generic_param: GenericParamId,
in_cycle: bool,
) -> Result<GenericParamData, DiagnosticAdded>
fn priv_generic_param_data( &self, generic_param: GenericParamId, in_cycle: bool, ) -> Result<GenericParamData, DiagnosticAdded>
source§fn single_value_type(&self, ty: TypeId) -> Result<bool, DiagnosticAdded>
fn single_value_type(&self, ty: TypeId) -> Result<bool, DiagnosticAdded>
source§fn type_size_info(
&self,
ty: TypeId,
) -> Result<TypeSizeInformation, DiagnosticAdded>
fn type_size_info( &self, ty: TypeId, ) -> Result<TypeSizeInformation, DiagnosticAdded>
source§fn type_info(
&self,
lookup_context: ImplLookupContext,
ty: TypeId,
) -> Result<TypeInfo, DiagnosticAdded>
fn type_info( &self, lookup_context: ImplLookupContext, ty: TypeId, ) -> Result<TypeInfo, DiagnosticAdded>
source§fn priv_type_is_fully_concrete(&self, ty: TypeId) -> bool
fn priv_type_is_fully_concrete(&self, ty: TypeId) -> bool
source§fn priv_type_is_var_free(&self, ty: TypeId) -> bool
fn priv_type_is_var_free(&self, ty: TypeId) -> bool
source§fn expr_semantic(&self, function_id: FunctionWithBodyId, id: Id<Expr>) -> Expr
fn expr_semantic(&self, function_id: FunctionWithBodyId, id: Id<Expr>) -> Expr
source§fn pattern_semantic(
&self,
function_id: FunctionWithBodyId,
id: Id<Pattern>,
) -> Pattern
fn pattern_semantic( &self, function_id: FunctionWithBodyId, id: Id<Pattern>, ) -> Pattern
source§fn statement_semantic(
&self,
function_id: FunctionWithBodyId,
id: Id<Statement>,
) -> Statement
fn statement_semantic( &self, function_id: FunctionWithBodyId, id: Id<Statement>, ) -> Statement
fn lookup_resolved_generic_item_by_ptr( &self, id: LookupItemId, ptr: TerminalIdentifierPtr, ) -> Option<ResolvedGenericItem>
fn lookup_resolved_concrete_item_by_ptr( &self, id: LookupItemId, ptr: TerminalIdentifierPtr, ) -> Option<ResolvedConcreteItem>
source§fn module_semantic_diagnostics(
&self,
module_id: ModuleId,
) -> Result<Diagnostics<SemanticDiagnostic>, DiagnosticAdded>
fn module_semantic_diagnostics( &self, module_id: ModuleId, ) -> Result<Diagnostics<SemanticDiagnostic>, DiagnosticAdded>
source§fn file_semantic_diagnostics(
&self,
file_id: FileId,
) -> Result<Diagnostics<SemanticDiagnostic>, DiagnosticAdded>
fn file_semantic_diagnostics( &self, file_id: FileId, ) -> Result<Diagnostics<SemanticDiagnostic>, DiagnosticAdded>
fn core_crate(&self) -> CrateId
fn core_module(&self) -> ModuleId
fn core_felt252_ty(&self) -> TypeId
fn analyzer_plugins(&self) -> Vec<Arc<dyn AnalyzerPlugin>>
source§fn set_analyzer_plugins(&mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>)
fn set_analyzer_plugins(&mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>)
analyzer_plugins
input. Read moresource§fn set_analyzer_plugins_with_durability(
&mut self,
value__: Vec<Arc<dyn AnalyzerPlugin>>,
durability__: Durability,
)
fn set_analyzer_plugins_with_durability( &mut self, value__: Vec<Arc<dyn AnalyzerPlugin>>, durability__: Durability, )
analyzer_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. Read moresource§fn declared_allows(&self) -> Arc<OrderedHashSet<String>>
fn declared_allows(&self) -> Arc<OrderedHashSet<String>>
allow
that were declared as by a plugin.
An allow that is not in this set will be handled as an unknown allow.source§fn methods_in_module(
&self,
module_id: ModuleId,
type_filter: TypeFilter,
) -> Arc<[TraitFunctionId]>
fn methods_in_module( &self, module_id: ModuleId, type_filter: TypeFilter, ) -> Arc<[TraitFunctionId]>
source§fn methods_in_crate(
&self,
crate_id: CrateId,
type_filter: TypeFilter,
) -> Arc<[TraitFunctionId]>
fn methods_in_crate( &self, crate_id: CrateId, type_filter: TypeFilter, ) -> Arc<[TraitFunctionId]>
source§fn visible_traits_from_module(
&self,
module_id: ModuleId,
) -> Option<Arc<OrderedHashMap<TraitId, String>>>
fn visible_traits_from_module( &self, module_id: ModuleId, ) -> Option<Arc<OrderedHashMap<TraitId, String>>>
source§fn visible_traits_in_module(
&self,
module_id: ModuleId,
user_module_id: ModuleId,
include_parent: bool,
) -> Arc<[(TraitId, String)]>
fn visible_traits_in_module( &self, module_id: ModuleId, user_module_id: ModuleId, include_parent: bool, ) -> Arc<[(TraitId, String)]>
user_module_id
is the module from which the traits are should be visible. If
include_parent
is true, the parent module of module_id
is also considered.