Skip to main content

resolve_generic_variant

Function resolve_generic_variant 

Source
pub fn resolve_generic_variant(
    path: &[SmolStr],
    type_args: &[TypeExpr],
    span: Span,
    ctx: Ctx,
    state: &mut State<'_>,
) -> (u16, u16)
Expand description

Resolves a variant of a generic enum named with its arguments (Slot<int>::Empty) to the instantiated enum and the variant’s index.