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
I stumbled across this while I was trying to do some very, extremely unsafe casting between any/all types to i64. I found the #[repr(<type>) syntax earlier today and decided to give this a spin. It did not make the compiler happy at all.
Currently, we are not allowed to have duplicate values if we are trying to make an enum for use with the FFI, which in these cases, makes wrapping somewhat difficult.
The text was updated successfully, but these errors were encountered:
I stumbled across this while I was trying to do some very, extremely unsafe casting between any/all types to i64. I found the
#[repr(<type>)
syntax earlier today and decided to give this a spin. It did not make the compiler happy at all.yields
Side note: there are a bunch of C libraries that I have used that have duplicate enum entries
i.e.
Currently, we are not allowed to have duplicate values if we are trying to make an enum for use with the FFI, which in these cases, makes wrapping somewhat difficult.
The text was updated successfully, but these errors were encountered: