Open
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.