Expand description
§fastbit
fastbit
is a fast, efficient, and pure Rust bitset library for high-performance data indexing and analytics.
This crate provides a collection of bitset and bitmap data structures, including growable bit vectors, fixed-size bitsets, bit grids, and efficient bit operations.
§Features
- Growable and fixed-size bitsets
- Efficient bitwise operations
- Bit slices and views for zero-copy access
- Iterators and utilities for bit manipulation
§Examples
use fastbit::{BitVec, BitRead, BitWrite};
let mut bv: BitVec<u8> = BitVec::new(128);
bv.set(5);
assert!(bv.test(5));
bv.reset(5);
assert!(!bv.test(5));
§Modules
BitVec
: Growable bit vectorBitFixed
: Fixed-size bitsetBitGrid
: 2D bit gridBitSpan
,BitSpanMut
: Bit slicesBitView
,BitViewMut
: Bit viewsIter
: Bit iterator
§Crate-level re-exports
The most important types are re-exported at the crate root.
Structs§
- BitFixed
- A fixed-size bitset.
- BitGrid
- A two-dimensional bit grid.
- BitList
- A sparse bit set implementation that efficiently stores indices of set bits.
- BitSet
Difference - Adapter for the difference of two bit sets (A \ B).
- BitSet
Intersection - Adapter for the intersection of two bit sets.
- BitSet
Symmetric Difference - Adapter for the symmetric difference (XOR) of two bit sets.
- BitSet
Union - Adapter for the union of two bit sets.
- BitSpan
- A non-owning read-only view into a bit array.
- BitSpan
Mut - A non-owning mutable view into a bit array.
- BitVec
- A growable, heap-allocated bit vector.
- BitView
- A read-only view into a bit set stored in memory.
- BitView
Mut - A mutable view into a bit set stored in memory.
- Iter
- An iterator over the set bits in a bit collection.