Defines a scalar enum as a type from its constructor.
enum Direction { Left, Right };type DirectionType = ScalarEnum<Direction>; Copy
enum Direction { Left, Right };type DirectionType = ScalarEnum<Direction>;
Defines a scalar enum as a type from its constructor.