#[derive(num_enum::TryFromPrimitive)] #[repr(u8)] enum Numbers { Zero = 0, #[num_enum(alternatives = [2])] One = 1, Two = 2, } fn main() { }