lib-misc-utils · crate
bit-vec
Kinogaki's own bit-vec, published under the crates.io name so the frozen wgpu-core (and our bit-set) resolve to it through [patch.crates-io].
- Repository
- lib-misc-utils (kinogaki/lib-misc-utils)
- Folder
libs/lib-misc-utils/crates/bit-vec- Source
- 1 file, 525 lines
- Tests
- 0 files, 0 lines
What it is
Kinogaki's own bit-vec, published under the crates.io name so the frozen wgpu-core (and our bit-set) resolve to it through [patch.crates-io]. It is not upstream bit-vec: it has the API those crates call.
BitVec<B> stores bits in blocks of B (u32 by default), bit i at block i / B::BITS, position i % B::BITS. Invariant: the bits past len() in the last block are zero, so blocks compare and count directly. As upstream, clear sets every bit to false and keeps the length.
Depends on
None.
Third-party
None.
Used by
| Crate | Repository | As | What it is |
|---|---|---|---|
bit-set | lib-misc-utils | normal | Kinogaki's own bit-set, published under the crates.io name so the frozen naga and wgpu-core resolve to it through [patch.crates-io]. |
Third-party crates using it
Modules
One file: the crate root.
Public types and traits
At the crate root
Traits BitBlock
Structs BitVecBlocksIterIterMutMutBorrowedBit
