mozilla/rust — Issue #1648: Be able to convert from integers to C-like enums
Author: kevina
Created: 2012-01-24 20:08:49+00:00
State: open

Now that we can specify explicit discriminant numbers (see #1393) it would be nice to be able to convert from integers to the C-like enums. Doing so safely will likely require some sort of run-time check.