pub(crate) fn discriminant_map(
    variants: &Punctuated<Variant, Comma>
) -> HashMap<Ident, TokenStream>
Expand description

Calculates the discriminant that will be assigned by the compiler. See: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values