#[derive(num_enum::FromPrimitive)] #[repr(u8)] enum Numbers { Zero = 0, #[num_enum(alternatives = [2..=255])] NonZero = 1, } fn main() { }