yabf-0.0.2 has been yanked.
Yabf
Just what the world needed - yet another bit field struct.
This is a small and simple implementation. It only has the basic functionality of a bit field:
- Set arbitary bit (if you set the millionth bit the list will use at least 125KB of heap space)
- Get bit value
- An iterator over the set bit indices.
The default implementation uses smallvec as a container, so the struct will be stack allocated if it contains less than 129 bits.
Rust cargo
Use with std::vec::Vec. Vec is slightly faster for larger bit fields
yabf = {version="^0.0.2",default-features=false}
Use with smallvec::SmallVec. SmallVec can be stack allocated for really small bit fields
yabf = {version="^0.0.2"}
License
Licensed under either of
at your option.