-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Feature gate: #![feature(uint_bit_width)]
This is a tracking issue for methods that return the minimum number of bits required to represent an unsigned integer.
The methods are implemented for the primitive unsigned integer types.
Public API
impl {u8,u16,u32,u64,u128,usize} {
pub const fn bit_width(self) -> u32;
}
Steps / History
(Remember to update the S-tracking-*
label when checking boxes.)
- ACP: ACP: Add
{u8,u16,u32,u64,u128,usize}::bit_len
libs-team#598 - Implementation: feat: Add
bit_width
for unsigned integer types #142328 - Final comment period (FCP)1
- Stabilization PR
Unresolved Questions
- None yet.
Footnotes
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.