3 ms·
> You can export generic Rust APIs with a stable C ABI by using trait objects, and it is often very easy to do this do you have a guide for that ? all the refe
by jcelerier 6y ago
> You can export generic Rust APIs with a stable C ABI by using trait objects, and it is often very easy to do this
do you have a guide for that ? all the reference I can find does not seem to behave any differently that it would in C++ - e.g. https://users.rust-lang.org/t/passing-a-trait-object-through-an-ffi-as-user-data/23550/12 https://users.rust-lang.org/t/passing-a-trait-object-through... ; https://doc.rust-lang.org/nomicon/ffi.html https://doc.rust-lang.org/nomicon/ffi.html ; ...