rust/library/core
Ralf Jung fef3324043
Rollup merge of #76492 - fusion-engineering-forks:int-bits, r=dtolnay
Add associated constant `BITS` to all integer types

Recently I've regularly come across this snippet (in a few different crates, including `core` and `std`):
```rust
std::mem::size_of<usize>() * 8
```

I think it's time for a `usize::BITS`.
2020-09-19 11:47:45 +02:00
..
benches flt2dec: properly handle uninitialized memory 2020-09-02 12:41:38 +02:00
src Rollup merge of #76492 - fusion-engineering-forks:int-bits, r=dtolnay 2020-09-19 11:47:45 +02:00
tests Use T::BITS instead of size_of::<T> * 8. 2020-09-19 06:54:42 +02:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00