third_party_rust_cxx/syntax
Joel Galenson c03402aee5 Support C-style enums
This adds support for passing C-style enums between Rust and C++.

We use the Rust representation for enums suggested by dtolnay in #132.
Note that as this does not use real enums, Rust code cannot treat them
as normal enums, e.g., by converting them to integers.  But common
uses such as pattern matching remain unchanged.
2020-04-30 14:12:37 -07:00
..
atom.rs Move is_valid_vector_target into type checker 2020-04-25 18:02:16 -07:00
attrs.rs Safe FFI between Rust and C++ 2020-01-08 08:57:24 -08:00
check.rs Support C-style enums 2020-04-30 14:12:37 -07:00
doc.rs Safe FFI between Rust and C++ 2020-01-08 08:57:24 -08:00
error.rs Fix Vec type checking 2020-04-25 18:02:16 -07:00
ident.rs Support C-style enums 2020-04-30 14:12:37 -07:00
impls.rs Rename Type::Vector to CxxVector 2020-04-25 18:02:12 -07:00
mangle.rs Bump namespace to cxxbridge03 2020-04-29 18:49:50 -07:00
mod.rs Support C-style enums 2020-04-30 14:12:37 -07:00
namespace.rs Revert visibility of Namespace segments from PR 67 2020-04-25 18:02:14 -07:00
parse.rs Support C-style enums 2020-04-30 14:12:37 -07:00
set.rs Safe FFI between Rust and C++ 2020-01-08 08:57:24 -08:00
symbol.rs Bump namespace to cxxbridge03 2020-04-29 18:49:50 -07:00
tokens.rs Fix module path of Vec in generated Rust code 2020-04-25 18:02:18 -07:00
types.rs Support C-style enums 2020-04-30 14:12:37 -07:00