45. Enumeration traits

The enum_trait module implements typeinfo traits for the enumerations.

All functions and symbols are in “enum_trait” module, use require to get access to it.

require daslib/enum_trait

45.1. Typeinfo macros

enum_length

Implements typeinfo(enum_length EnumOrEnumType) which returns total number of elements in enumeration.