rustc_ty_utils::consts

Function destructure_const

Source
fn destructure_const<'tcx>(
    tcx: TyCtxt<'tcx>,
    const_: Const<'tcx>,
) -> DestructuredConst<'tcx>
Expand description

Destructures array, ADT or tuple constants into the constants of their fields.