Creates new enum type.

enum_type(type_name, values_names, ...)

Arguments

type_name

Character vector of length 1. Name of the type. Type name will be referenced by this value

...

Optional other fields that are used during constructing enum_values

value_names

Character vector of positive length. Possible names of enum_values (instances)