Skip to main content

enumeration

Attribute Macro enumeration 

Source
#[enumeration]
Expand description

Declare an enum: C-style (every variant a unit, crossing as an int32_t) or rich (variants with named fields, crossing as a value buffer). A variant’s discriminant is its = value, or one more than the previous variant’s.