File: array.md

package info (click to toggle)
rust-coreutils 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 505,620 kB
  • sloc: ansic: 103,594; asm: 28,570; sh: 8,910; python: 5,581; makefile: 472; cpp: 97; javascript: 72
file content (21 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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 library’s 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