Defines bidirectional mapping methods for an enum with an existing mode.
This macro generates methods for converting between enum variants and values
for each specified mode using an already defined mode enum.
Defines bidirectional mapping methods for an enum with a custom mode.
This macro generates methods for converting between enum variants and values
for each specified mode.