-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Tracking issue for floats ↔ bytes conversions #60446
Comments
Those methods above are not const anymore. We have to make |
There is a typo in the documentation. f64::from_le_bytes reads "Create a floating point value from its representation as a byte array in big endian." but it should say "... little endian". There may be other such typos, I only checked this function. |
You're right. Could you send a pull request to fix that typo? |
Looks like you already did. Linking to it here just in case anyone is reading the thread: #63366 To be honest, the suggestion kind of blew my mind that I, too, could contribute to rust-lang. I'll submit a PR next time. Thanks. |
Any remaining issue? @rfcbot fcp merge |
Team member @SimonSapin has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. The RFC will be merged soon. |
#58756#62366 adds:PR discussion summary: unlike corresponding integer methods, these can be implemented without
unsafe
code. So the need for having them in the standard library feels less pressing. At the same time, it might not be obvious to everyone thatto_bits
andfrom_bits
can be combined with integer methods in this way. So having these float methods helps discoverability.The text was updated successfully, but these errors were encountered: