Type Alias rustc_middle::thir::UserTy

source ·
type UserTy<'tcx> = Option<Box<CanonicalUserType<'tcx>>>;

Aliased Type§

enum UserTy<'tcx> {
    None,
    Some(Box<Canonical<'tcx, UserType<'tcx>>, Global>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(Box<Canonical<'tcx, UserType<'tcx>>, Global>)

Some value of type T.

Trait Implementations§

source§

impl<'tcx, T: Lift<'tcx>> Lift<'tcx> for Option<T>

§

type Lifted = Option<<T as Lift<'tcx>>::Lifted>

source§

fn lift_to_tcx(self, tcx: TyCtxt<'tcx>) -> Option<Self::Lifted>

source§

impl<T: ParameterizedOverTcx> ParameterizedOverTcx for Option<T>

§

type Value<'tcx> = Option<<T as ParameterizedOverTcx>::Value<'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: 8 bytes

Size for each variant:

  • None: 0 bytes
  • Some: 8 bytes