Since we always generate the special members, use them instead.

... Except, for move constructors, we don't always generate them? So we need this nullptr check. I've added it to all of the special member functions to be safe, but I don't understand why this is happening TBH.

Anyway, this should make the bodies close enough to identical that we can then actually refactor to use a single shared function, rather than all this ad hoc logic that doesn't really look right.

PiperOrigin-RevId: 406097423
1 file changed
tree: d4225c722f1d5a4233061f81834aec61e41495d7
  1. rs_bindings_from_cc/
  2. CODE_OF_CONDUCT
  3. CONTRIBUTING
  4. LICENSE
  5. README.md
README.md

Crubit: C++/Rust Bidirectional Interop Tool

Extremely experimental interop tooling for C++ and Rust.

Please don‘t use, this is an experiment and we don’t yet know where will it take us. There will be breaking changes without warning. Unfortunately, we can't take contributions at this point.