Add RangeEnum
trait
#824
Labels
T-libs-api
Relevant to the library API team, which will review and decide on the RFC.
RangeEnum
trait
#824
Issue by orenbenkiki
Monday Nov 11, 2013 at 10:48 GMT
For earlier discussion, see rust-lang/rust#10418
This issue was labelled with: A-libs in the Rust repository
Following the last few comments on #4926.
Add a
RangeEnum
trait for simple Enums (which implementFromPrimitive
) to allow quick access to the total number of values, and provide an iterator over the values.The text was updated successfully, but these errors were encountered: