File: vec.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 (16 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Dynamically-Allocated, Adjustable-Size, Bit Buffer

This module defines the [`BitVec`] buffer and its associated support code.

`BitVec` is analogous to [`Vec<bool>`] in its use of dynamic memory allocation
and its relationship to the [`BitSlice`] type. Most of the interesting work to
be done on a bit sequence is actually implemented in `BitSlice`, with `BitVec`
itself largely only containing interfaces to the memory allocator.

## Original

[`vec`](mod@alloc::vec)

[`BitVec`]: crate::vec::BitVec
[`BitSlice`]: crate::slice::BitSlice
[`Vec<bool>`]: alloc::vec::Vec