Type Alias rustc_middle::ty::TermKind

source ·
pub type TermKind<'tcx> = TermKind<TyCtxt<'tcx>>;

Aliased Type§

enum TermKind<'tcx> {
    Ty(Ty<'tcx>),
    Const(Const<'tcx>),
}

Variants§

§

Ty(Ty<'tcx>)

§

Const(Const<'tcx>)

Trait Implementations§

source§

impl<'tcx> TermKindPackExt<'tcx> for TermKind<'tcx>

source§

fn pack(self) -> Term<'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:

  • Ty: 8 bytes
  • Const: 8 bytes