IDL 4.2 · §7.4.1.4.4.6
Enum
An enum defines a distinct type with a fixed set of named enumerators. @value lets you pin explicit ordinals; the wire representation follows the XTypes rules for enum bit-bound.
Example
enum Color { RED, GREEN, BLUE };
enum Status { @value(10) OK, @value(20) FAIL };
ZeroDDS support
| OMG IDL 4.2 section | §7.4.1.4.4.6 |
| Implementation | idl-lower/src/lower.rs |
| Tests | lowering.rs |
| Status | ✓ — parsed and validated. |
See also: IDL construct coverage · idl-4.2 audit · OMG IDL 4.2 spec