Function rupta::util::type_util::layout_of

source ·
pub fn layout_of<'tcx>(
    tcx: TyCtxt<'tcx>,
    param_env: ParamEnv<'tcx>,
    ty: Ty<'tcx>
) -> Result<TyAndLayout<'tcx>, &'tcx LayoutError<'tcx>>
Expand description

Returns a layout for the given type, if concrete.