pub type GenericArgKind<'tcx> = GenericArgKind<TyCtxt<'tcx>>;
Aliased Type§
pub enum GenericArgKind<'tcx> {
Lifetime(Region<'tcx>),
Type(Ty<'tcx>),
Const(Const<'tcx>),
}
Variants§
Trait Implementations§
Source§impl<'tcx> GenericArgPackExt<'tcx> for GenericArgKind<'tcx>
impl<'tcx> GenericArgPackExt<'tcx> for GenericArgKind<'tcx>
fn pack(self) -> GenericArg<'tcx>
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.