cairo_lang_defs::ids

Trait LanguageElementId

Source
pub trait LanguageElementId {
    // Required methods
    fn module_file_id(&self, db: &dyn DefsGroup) -> ModuleFileId;
    fn untyped_stable_ptr(&self, db: &dyn DefsGroup) -> SyntaxStablePtrId;
    fn stable_location(&self, db: &dyn DefsGroup) -> StableLocation;

    // Provided methods
    fn parent_module(&self, db: &dyn DefsGroup) -> ModuleId { ... }
    fn file_index(&self, db: &dyn DefsGroup) -> FileIndex { ... }
}

Required Methods§

Provided Methods§

Source

fn parent_module(&self, db: &dyn DefsGroup) -> ModuleId

Source

fn file_index(&self, db: &dyn DefsGroup) -> FileIndex

Implementors§

Source§

impl LanguageElementId for FunctionTitleId

Source§

impl LanguageElementId for FunctionWithBodyId

Source§

impl LanguageElementId for GenericImplItemId

Source§

impl LanguageElementId for GenericItemId

Source§

impl LanguageElementId for GenericModuleItemId

Source§

impl LanguageElementId for GenericTraitItemId

Source§

impl LanguageElementId for GenericTypeId

Source§

impl LanguageElementId for ImplItemId

Source§

impl LanguageElementId for LookupItemId

Source§

impl LanguageElementId for ModuleItemId

Source§

impl LanguageElementId for StatementItemId

Source§

impl LanguageElementId for TraitItemId

Source§

impl LanguageElementId for VarId

Source§

impl LanguageElementId for ConstantId

Source§

impl LanguageElementId for EnumId

Source§

impl LanguageElementId for ExternFunctionId

Source§

impl LanguageElementId for ExternTypeId

Source§

impl LanguageElementId for FreeFunctionId

Source§

impl LanguageElementId for GenericParamId

Source§

impl LanguageElementId for GlobalUseId

Source§

impl LanguageElementId for ImplAliasId

Source§

impl LanguageElementId for ImplConstantDefId

Source§

impl LanguageElementId for ImplDefId

Source§

impl LanguageElementId for ImplFunctionId

Source§

impl LanguageElementId for ImplImplDefId

Source§

impl LanguageElementId for ImplTypeDefId

Source§

impl LanguageElementId for LocalVarId

Source§

impl LanguageElementId for MemberId

Source§

impl LanguageElementId for ModuleTypeAliasId

Source§

impl LanguageElementId for ParamId

Source§

impl LanguageElementId for StatementConstId

Source§

impl LanguageElementId for StatementUseId

Source§

impl LanguageElementId for StructId

Source§

impl LanguageElementId for SubmoduleId

Source§

impl LanguageElementId for TraitConstantId

Source§

impl LanguageElementId for TraitFunctionId

Source§

impl LanguageElementId for TraitId

Source§

impl LanguageElementId for TraitImplId

Source§

impl LanguageElementId for TraitTypeId

Source§

impl LanguageElementId for UseId

Source§

impl LanguageElementId for VariantId