| 1 |
# Statically-Allocated, Fixed-Size, Bit Buffer |
| 2 |
|
| 3 |
This module defines a port of the [array fundamental][0] and its APIs. The |
| 4 |
primary export is the [`BitArray`] structure. This is a thin wrapper over |
| 5 |
`[T; N]` that provides a [`BitSlice`] view of its contents and is *roughly* |
| 6 |
analogous to the C++ type [`std::bitset<N>`]. |
| 7 |
|
| 8 |
See the `BitArray` documentation for more details on its usage. |
| 9 |
|
| 10 |
## Submodules |
| 11 |
|
| 12 |
- `api` contains ports of the standard library’s array type and `core::array` |
| 13 |
module. |
| 14 |
- `iter` contains ports of array iteration. |
| 15 |
- `ops` defines operator-sigil traits. |
| 16 |
- `traits` defines all the other traits. |
| 17 |
|
| 18 |
[0]: https://doc.rust-lang.org/std/primitive.array.html |
| 19 |
[`BitArray`]: self::BitArray |
| 20 |
[`BitSlice`]: crate::slice::BitSlice |
| 21 |
[`std::bitset<N>`]: https://en.cppreference.com/w/cpp/utility/bitset |