cairo_lang_sierra_to_casm::invocations::enm

Function get_variant_selector

Source
pub fn get_variant_selector(
    n_variants: usize,
    index: usize,
) -> Result<usize, InvocationError>
Expand description

Returns the variant selector for variant index out of n_variants.