pub fn get_discriminant_value( tcx: TyCtxt<'_>, adt: AdtDef<'_>, i: VariantIdx, ) -> EnumValue
Gets the value of the given variant.