Derive Macro VariantIndexArity

Source
#[derive(VariantIndexArity)]
Expand description

Macro to derive a function fn variant_index_arity(&self) -> (u32, usize) the pair (variant index, variant arity). Only works on enumerations, of course.