Type Alias GenericArgKind

Source
pub type GenericArgKind<'tcx> = GenericArgKind<TyCtxt<'tcx>>;

Aliased Type§

pub enum GenericArgKind<'tcx> {
    Lifetime(Region<'tcx>),
    Type(Ty<'tcx>),
    Const(Const<'tcx>),
}

Variants§

§

Lifetime(Region<'tcx>)

§

Type(Ty<'tcx>)

§

Const(Const<'tcx>)

Trait Implementations§

Source§

impl<'tcx> GenericArgPackExt<'tcx> for GenericArgKind<'tcx>

Source§

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.