Type Alias AliasTy
pub type AliasTy<'db> = AliasTy<DbInterner<'db>>;Aliased Type§
pub struct AliasTy<'db> {
pub args: GenericArgs<'db>,
pub def_id: SolverDefId,
/* private fields */
}Fields§
§args: GenericArgs<'db>The parameters of the associated or opaque type.
For a projection, these are the generic parameters for the trait and the GAT parameters, if there are any.
For an inherent projection, they consist of the self type and the GAT parameters, if there are any.
For RPIT the generic parameters are for the generics of the function, while for TAIT it is used for the generic parameters of the alias.
def_id: SolverDefIdThe DefId of the TraitItem or ImplItem for the associated type N depending on whether
this is a projection or an inherent projection or the DefId of the OpaqueType item if
this is an opaque.
During codegen, interner.type_of(def_id) can be used to get the type of the
underlying type if the type is an opaque.
Note that if this is an associated type, this is not the DefId of the
TraitRef containing this associated type, which is in interner.associated_item(def_id).container,
aka. interner.parent(def_id).