pub trait EnumCount {
const COUNT: usize;
}
Expand description
A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros
.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.