Function rustc_const_eval::const_eval::tag_for_variant_provider
source · pub fn tag_for_variant_provider<'tcx>(
tcx: TyCtxt<'tcx>,
(ty, variant_index): (Ty<'tcx>, VariantIdx)
) -> Option<ScalarInt>
Expand description
Computes the tag (if any) for a given type and variant.