rustc_ty_utils::layout

Function layout_of

source
fn layout_of<'tcx>(
    tcx: TyCtxt<'tcx>,
    query: ParamEnvAnd<'tcx, Ty<'tcx>>,
) -> Result<TyAndLayout<'tcx>, &'tcx LayoutError<'tcx>>