macro_rules! bidirectional_enum_mappings_with_existing_mode {
($name:ident, $type:ty, $mode_name:ident, { $($mode:ident => { $($variant:ident => $value:expr),* $(,)? }),* $(,)? }) => { ... };
}Expand description
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.