Function get_all_variants_in_order_from

Source
pub fn get_all_variants_in_order_from(
    variants: &VariantDefTop,
) -> impl Iterator<Item = &Variant>
Expand description

Get information about all variants defined in the specified structure in order.

ยงPanics

May panic if the variants data is inconsistent and the variants order array includes a VariantKind that is not present in the actual hashmap. This should hopefully never ever happen, and there is a unit test for that.