Expand description
Provides the open_enum macro.
Macrosยง
- open_
enum - This macro creates an underlying struct that behaves like an enum, without
the undefined behavior of trying to match with a value outside of the enum.
The actual object created is a
#[repr(transparent)]struct with apubconst value. See comment in example below for an example of the underlying structure.