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.