-
Notifications
You must be signed in to change notification settings - Fork 9
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
Non-unsafe functions for PODs? #5
Labels
Comments
Turns out not even PODs are safe! Great! |
nabijaczleweli
changed the title
Non-unsafe functions for PODs
Non-unsafe functions for PODs?
Oct 8, 2017
I suggest that we attempt to grab as many situations of safe transmutation as possible in a case-by-case basis. In particular:
It's likely that we'll need separate functions for each case. |
nabijaczleweli
added a commit
that referenced
this issue
Oct 9, 2017
Effectively just uses a marker trait to waive any responsibility Also, is #[cfg(stage0)] the correct thingy to enable {i,u}128s with Ref: #5
Released in v0.5.0. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since PODs (and only PODs) are actually safe to type-pun we could probably totally do that!
Now if only there was a
std::is_pod<T>
in Rust…The text was updated successfully, but these errors were encountered: