Function clippy_utils::ty::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.