Struct rustc_middle::ty::layout::LayoutCx[−][src]

pub struct LayoutCx<'tcx, C> {
    pub tcx: C,
    pub param_env: ParamEnv<'tcx>,
}

Fields

tcx: Cparam_env: ParamEnv<'tcx>

Implementations

Compute the eligibility and assignment of each local.

Compute the full generator layout.

This is invoked by the layout_raw query to record the final layout of each type.

Trait Implementations

Computes the layout of a type. Note that this implicitly executes in “reveal all” mode.

Computes the layout of a type. Note that this implicitly executes in “reveal all” mode.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.