Skip to content
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

Rename Float::repr and Float::from_repr #718

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

tgross35
Copy link
Contributor

to_bits and from_bits are builtin methods on float types. Rename repr to to_bits and from_repr to from_bits so this is consistent with usage that doesn't go through the trait.

`to_bits` and `from_bits` are builtin methods on float types. Rename
`repr` to `to_bits` and `from_repr` to `from_bits` so this is consistent
with usage that doesn't go through the trait.
There is no in-crate use for this yet, but we will make use of it in
`libm`.
@tgross35 tgross35 enabled auto-merge October 25, 2024 19:37
@tgross35 tgross35 merged commit 27d64ee into rust-lang:master Oct 25, 2024
25 checks passed
@tgross35 tgross35 deleted the float-trait-refactor branch October 26, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant