Trait strum::EnumCount

source ·
pub trait EnumCount {
    fn count() -> usize;
}
Expand description

A trait for capturing the number of variants in Enum. This trait can be autoderived by strum_macros.

Required Methods

Implementors