Enum ra_ap_hir_def::AttrDefId
source · pub enum AttrDefId {
Show 16 variants
ModuleId(ModuleId),
FieldId(FieldId),
AdtId(AdtId),
FunctionId(FunctionId),
EnumVariantId(EnumVariantId),
StaticId(StaticId),
ConstId(ConstId),
TraitId(TraitId),
TraitAliasId(TraitAliasId),
TypeAliasId(TypeAliasId),
MacroId(MacroId),
ImplId(ImplId),
GenericParamId(GenericParamId),
ExternBlockId(ExternBlockId),
ExternCrateId(ExternCrateId),
UseId(UseId),
}
Variants§
ModuleId(ModuleId)
FieldId(FieldId)
AdtId(AdtId)
FunctionId(FunctionId)
EnumVariantId(EnumVariantId)
StaticId(StaticId)
ConstId(ConstId)
TraitId(TraitId)
TraitAliasId(TraitAliasId)
TypeAliasId(TypeAliasId)
MacroId(MacroId)
ImplId(ImplId)
GenericParamId(GenericParamId)
ExternBlockId(ExternBlockId)
ExternCrateId(ExternCrateId)
UseId(UseId)
Trait Implementations§
source§impl From<AssocItemId> for AttrDefId
impl From<AssocItemId> for AttrDefId
source§fn from(assoc: AssocItemId) -> Self
fn from(assoc: AssocItemId) -> Self
Converts to this type from the input type.
source§impl From<EnumVariantId> for AttrDefId
impl From<EnumVariantId> for AttrDefId
source§fn from(it: EnumVariantId) -> AttrDefId
fn from(it: EnumVariantId) -> AttrDefId
Converts to this type from the input type.
source§impl From<ExternCrateId> for AttrDefId
impl From<ExternCrateId> for AttrDefId
source§fn from(it: ExternCrateId) -> AttrDefId
fn from(it: ExternCrateId) -> AttrDefId
Converts to this type from the input type.
source§impl From<FunctionId> for AttrDefId
impl From<FunctionId> for AttrDefId
source§fn from(it: FunctionId) -> AttrDefId
fn from(it: FunctionId) -> AttrDefId
Converts to this type from the input type.
source§impl From<GenericParamId> for AttrDefId
impl From<GenericParamId> for AttrDefId
source§fn from(it: GenericParamId) -> AttrDefId
fn from(it: GenericParamId) -> AttrDefId
Converts to this type from the input type.
source§impl From<ItemContainerId> for AttrDefId
impl From<ItemContainerId> for AttrDefId
source§fn from(acid: ItemContainerId) -> Self
fn from(acid: ItemContainerId) -> Self
Converts to this type from the input type.
source§impl From<MacroRulesId> for AttrDefId
impl From<MacroRulesId> for AttrDefId
source§fn from(it: MacroRulesId) -> AttrDefId
fn from(it: MacroRulesId) -> AttrDefId
Converts to this type from the input type.
source§impl From<ProcMacroId> for AttrDefId
impl From<ProcMacroId> for AttrDefId
source§fn from(it: ProcMacroId) -> AttrDefId
fn from(it: ProcMacroId) -> AttrDefId
Converts to this type from the input type.
source§impl From<TraitAliasId> for AttrDefId
impl From<TraitAliasId> for AttrDefId
source§fn from(it: TraitAliasId) -> AttrDefId
fn from(it: TraitAliasId) -> AttrDefId
Converts to this type from the input type.
source§impl From<TypeAliasId> for AttrDefId
impl From<TypeAliasId> for AttrDefId
source§fn from(it: TypeAliasId) -> AttrDefId
fn from(it: TypeAliasId) -> AttrDefId
Converts to this type from the input type.
source§impl HasModule for AttrDefId
impl HasModule for AttrDefId
source§fn module(&self, db: &dyn DefDatabase) -> ModuleId
fn module(&self, db: &dyn DefDatabase) -> ModuleId
Returns the enclosing module this thing is defined within.
source§fn krate(&self, db: &dyn DefDatabase) -> CrateId
fn krate(&self, db: &dyn DefDatabase) -> CrateId
Returns the crate this thing is defined within.
source§impl PartialEq for AttrDefId
impl PartialEq for AttrDefId
source§impl TryFrom<ModuleDefId> for AttrDefId
impl TryFrom<ModuleDefId> for AttrDefId
impl Copy for AttrDefId
impl Eq for AttrDefId
impl StructuralPartialEq for AttrDefId
Auto Trait Implementations§
impl Freeze for AttrDefId
impl RefUnwindSafe for AttrDefId
impl Send for AttrDefId
impl Sync for AttrDefId
impl Unpin for AttrDefId
impl UnwindSafe for AttrDefId
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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.