TermKind in rustc_middle::ty::generic_args - Rust
Description: API documentation for the Rust `TermKind` type in crate `rustc_middle`.

Skip to main content

## TermKind

# Type Alias TermKind

Source

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

## Aliased Type§

    pub 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: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.