pub trait EnumAll: Sized {
type All;
const ALL: Self::All;
}Expand description
Get an array of all variants of an enum.
Derive this trait on unit enums via #[derive(EnumAll)].
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".