You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed, that ought to be the implementation 👌 I am waiting on this since I'd like to bundle support for repr_c::Result from there, and I want to think a bit about the best design / layout (e.g., C ergonomics) for such a thing 🙂
Yeah, I think this will require #46, the current situation with macro_rules! macros to save a bit of compile time is not worth the maintainability cost
Is it possible to add support for
#[repr(C, Int)]
enums?In the Type layout reference it says:
I am not sure is this is guaranteed tho. If it is we should be able to transmute both ways right?
Playground test: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=fe82b419608d325d93481155c4458bc8
The text was updated successfully, but these errors were encountered: