pub(crate) trait AllVariants: Copy + 'static {
const ALL_VARIANTS: &[Self];
}Expand description
Derivable trait for enums with no fields (i.e. C-style enums) that want to allow iteration over a list of all variant values.
Required Associated Constants§
const ALL_VARIANTS: &[Self]
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.