pub fn translate_enums(emt: &ExternModuleTranslator) -> String
Expand description
Translates rust enum into its cpp equivalents. For rust enums with unit variants only a c++ enum class representation is generated. For complex enums it generates a struct (tagged union) that has a tag which is c++ enum class and payload which is union of all possible variants.