pub fn derive_variant_index_arity(item: TokenStream) -> TokenStream
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.
pub fn derive_variant_index_arity(item: TokenStream) -> TokenStream
Macro to derive a function fn variant_index_arity(&self) -> (u32, usize)
the pair (variant index, variant arity).
Only works on enumerations, of course.