-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add *c_void (*Void) conversion functions #4725
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Nominating for milestone 3, feature-complete |
accepted for feature-complete milestone |
You can now coerce borrowed pointers to raw pointers, and it's possible to make arbitrary casts of raw pointers with |
This doesn't particularly matter to me any more, and Void should maybe not exist. |
assigning P-low. |
actually, closing, since brson no longer cares about this. |
*c_void
(or potentially *Void #4724) is my preferred hammer when I need to pass around some untyped pointers. Currently I usetransmute
to convert back and forth, but I might instead want something like:etc. Writing
Void::from_borrowed
makes the code more obvious thantransmute
, sincetransmute
can mean anything.The text was updated successfully, but these errors were encountered: