macro_rules! bidirectional_enum_mappings {
($name:ident, $type:ty, { $($variant:ident => $value:expr),* $(,)? }) => { ... };
}Expand description
Defines bidirectional mapping methods for an enum, allowing conversion between enum variants and corresponding values.