Re-exports§
pub use generator::generate_cpp_file;
pub use templates::exception_class_name;
Modules§
Structs§
Functions§
- create_
enum_ class - create_
enum_ class_ objects - enums_
cpp_ forward_ declarations - translate_
enums - 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.