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 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