The code restructuring work that allows transparent typedefs (see https://github.com/mozilla/cbindgen/pull/966) makes it straightforward to also support rust's transparent enums if we want to do so. Add the support, including accompanying tests and documentation.
The code restructuring work that allows transparent typedefs (see https://github.com/mozilla/cbindgen/pull/966) makes it straightforward to also support rust's transparent enums if we want to do so. Add the support, including accompanying tests and documentation.
NOTE: This PR is currently stacked on top of https://github.com/mozilla/cbindgen/pull/966, so the first two commits should be ignored while reviewing.