-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type char
does not implement StableAbi
#110
Comments
The reason I haven't implemented If |
Reminds me of this IRLO discussion in which Josh Triplett said:
Later in the discussion, scottmcm made the following points:
Finally, for a more authoritative take, The Rust Reference states:
|
@rodrimati1992 hmm, I see. My particular use case was to represent ISO-639 country codes as [char; 2] - I can just regular strings instead. Anyway, do you think there is a chance this might be implemented given the arguments pointed out by @eggyal? |
My gut would be to use an enum for that, which is in fact what the isolang crate does. |
When trying to use
char
as an FFI type, the error below is thrown. According to the documentation, achar
is always four bytes in size, so this should not be hard to support.The text was updated successfully, but these errors were encountered: