Trait EnumCount
strum
pub trait EnumCount { fn count() -> usize; }
A trait for capturing the number of variants in Enum. This trait can be autoderived by strum_macros.
strum_macros
fn count() -> usize