clippy_utils::ty

Function get_discriminant_value

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

Gets the value of the given variant.