Skip to content

Tracking Issue for uint_bit_width #142326

Open
@sorairolake

Description

@sorairolake

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

Unresolved Questions

  • None yet.

Footnotes

  1. https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions