pub type Alias<'tcx, K> = Alias<TyCtxt<'tcx>, K>;Aliased Type§
pub struct Alias<'tcx, K> {
pub kind: K,
pub args: &'tcx RawList<(), GenericArg<'tcx>>,
/* private fields */
}Fields§
§kind: K§args: &'tcx RawList<(), GenericArg<'tcx>>The parameters of the associated, opaque, or constant alias.
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.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.