-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 NonZero*::count_ones
#120287
Comments
Anything holding this back from getting stabilized? |
@tyilo nothing that I'm aware of. @rust-lang/libs-api I would like to propose this feature for stabilization. This feature adds a very straightforward function: impl NonZero* {
pub fn count_ones(self) -> NonZeroU32;
} The benefit here, as opposed to writing |
I understand that this returns But why
|
@tyilo it's not necessarily that we have to use 32 bits, and more so that |
@rfcbot fcp merge |
Team member @Amanieu 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. This will be merged soon. |
…r=cuviper Stabilize `NonZero::count_ones` As per rust-lang#120287 (comment) r? libs
…r=cuviper Stabilize `NonZero::count_ones` As per rust-lang#120287 (comment) r? libs
Rollup merge of rust-lang#136663 - WaffleLapkin:count-non-zero-ones, r=cuviper Stabilize `NonZero::count_ones` As per rust-lang#120287 (comment) r? libs
Feature gate:
#![feature(non_zero_count_ones)]
This is a tracking issue for
NonZero*::count_ones
family of methods.Public API
Steps / History
NonZero*::count_ones
#118326Unresolved Questions
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩
The text was updated successfully, but these errors were encountered: