Struct is how the data is accessed, not how the data is stored. And field access is highly desirable for unions.
@nick_r_cameron OTOH, I don't trust bindgen to do the same as GCC and clang, so I don't use it.
-
-
@BRIAN_____ would you trust the Rust compiler to do the same? We should improve bindgen until you do trust it. Do you have specific issues? -
@nick_r_cameron I guess bindgen! is just different syntax for#include. I guess. I'd trust it when rustc team trusts it enough to bundle it. -
@BRIAN_____ I would very much like to move in that direction. Better ergonomics around FFI is something I want to improve this year -
@nick_r_cameron Why not just make union support part of bindgen, then?
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.