pub trait EnumCount {
const COUNT: usize;
}Expand description
Compile-time variant count for any enum used as a LABEL field.
Generated by #[derive(EnumLabel)] and consulted by lint L005 so we
do not depend on nightly’s variant_count. Spec 12 § 3.6.
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.