Files
Notes/notes-service/vendor/bitvec/doc/array.md
T
2026-08-01 16:11:49 +03:00

22 lines
806 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Statically-Allocated, Fixed-Size, Bit Buffer
This module defines a port of the [array fundamental][0] and its APIs. The
primary export is the [`BitArray`] structure. This is a thin wrapper over
`[T; N]` that provides a [`BitSlice`] view of its contents and is *roughly*
analogous to the C++ type [`std::bitset<N>`].
See the `BitArray` documentation for more details on its usage.
## Submodules
- `api` contains ports of the standard librarys array type and `core::array`
module.
- `iter` contains ports of array iteration.
- `ops` defines operator-sigil traits.
- `traits` defines all the other traits.
[0]: https://doc.rust-lang.org/std/primitive.array.html
[`BitArray`]: self::BitArray
[`BitSlice`]: crate::slice::BitSlice
[`std::bitset<N>`]: https://en.cppreference.com/w/cpp/utility/bitset