rustc_middle::ty::generic_args

Type Alias GenericArgKind

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

Aliased Type§

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: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 16 bytes

Size for each variant:

  • Lifetime: 8 bytes
  • Type: 8 bytes
  • Const: 8 bytes