[][src]Trait strum::EnumCount

pub trait EnumCount {
    fn count() -> usize;
}

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

Required methods

fn count() -> usize

Loading content...

Implementors

Loading content...