Expand description
Provides the open_enum
macro.
Macrosยง
- 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 apub
const value. See comment in example below for an example of the underlying structure.