mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
2f9bc56e5a
Implement `BITS` constant for non-zero integers This adds the associated [`BITS`](https://doc.rust-lang.org/stable/std/primitive.usize.html#associatedconstant.BITS) constant to `NonZero{U,I}{8,16,32,64,128,size}`. This is useful when a type alias refers to either a regular or non-zero integer.