Open dtolnay opened 4 years ago
We should support structs that have type parameters and translate them to an ABI-compatible class template in C++.
#[cxx::bridge] mod ffi { struct Generic<T> { wow: T, } extern "C" { fn f(g: Generic<String>); } }
Marking help wanted, but please only move forward with this if you have a concrete use case for it.
We should support structs that have type parameters and translate them to an ABI-compatible class template in C++.