enum_coder
Enum coder macro. A syntancic sugar for generating lists of instructions, intermediate representations for compilers etc.
Input for the macro consists of one enum definition, followed by function definitions.
Attributes generate_list
makes a generator of enum values. The function
signature is fn f() -> Vec<T>
.
Attribute missing_field
marks the computation of default values for fields.
Alternatively, the attribute can be written as missing_field(args, ...)
.
Then, function signature is fn f(args, field_name: &str)
.
See examples
for more.
enum_coder!