pub trait VariantIterable where
    Self: VariantCountable
{ const VARIANTS: [&'static str; Self::VARIANT_COUNT]; fn variant_index(&self) -> usize; fn variant_name(&self) -> String { ... } }
Expand description

An enum trait that allows getting the index of its variant and thereby the name of the variant.

Required Associated Constants

Required Methods

Provided Methods

Implementors