pub fn get_discriminant_value(
    tcx: TyCtxt<'_>,
    adt: AdtDef<'_>,
    i: VariantIdx
) -> EnumValue
Expand description

Gets the value of the given variant.