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)
Tuple Fields of FunctionId
0: FunctionId
AdtId(AdtId)
Tuple Fields of AdtId
0: AdtId
TraitId(TraitId)
Tuple Fields of TraitId
0: TraitId
TypeAliasId(TypeAliasId)
Tuple Fields of TypeAliasId
0: TypeAliasId
ImplId(ImplId)
Tuple Fields of ImplId
0: ImplId
EnumVariantId(EnumVariantId)
Tuple Fields of EnumVariantId
ConstId(ConstId)
Tuple Fields of ConstId
0: 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.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more