Enum ra_ap_hir_def::GenericDefId [−][src]
pub enum GenericDefId { FunctionId(FunctionId), AdtId(AdtId), TraitId(TraitId), TypeAliasId(TypeAliasId), ImplId(ImplId), EnumVariantId(EnumVariantId), ConstId(ConstId), }
Variants
FunctionId(FunctionId)
AdtId(AdtId)
TraitId(TraitId)
TypeAliasId(TypeAliasId)
ImplId(ImplId)
EnumVariantId(EnumVariantId)
ConstId(ConstId)
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Value = ConstParam
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalConstParamId, Self::Value>>
type Value = LifetimeParam
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalLifetimeParamId, Self::Value>>
fn child_source(
&self,
db: &dyn DefDatabase
) -> InFile<ArenaMap<LocalTypeParamId, Self::Value>>
Builds a resolver for type references inside this def.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GenericDefId
impl Send for GenericDefId
impl Sync for GenericDefId
impl Unpin for GenericDefId
impl UnwindSafe for GenericDefId
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.