simplebitset

Crates.iosimplebitset
lib.rssimplebitset
version0.5.0
created_at2025-10-29 06:00:11.630615+00
updated_at2025-11-12 21:14:58.78345+00
descriptionDead simple Rust bitset
homepagehttps://github.com/paulcdejean/simplebitset
repositoryhttps://github.com/paulcdejean/simplebitset
max_upload_size
id1906111
size43,370
Paul Dejean (paulcdejean)

documentation

README

Simple BitSet

A dead simple bitset. Not generic at all, it only stores u8s and nothing else. For its underlying storage it uses 256 bits.

Attempts to match the interface of std::collections::HashSet with some exceptions.

HashSet methods not implemented for simple BitSet

  • get_or_insert_with: Low priority TODO.
  • entry: Medium priority TODO.
  • hasher: Won't be implemented. No sane way to implement this.

HashSet methods that are behind the compatibility-methods feature

  • capacity: Just returns 256usize.
  • reserve: Does nothing.
  • shrink_to: Does nothing.
  • shrink_to_fit: Does nothing.
  • try_reserve: Returns Ok(()).
  • with_capacity: Same behavior as new() just returns an empty BitSet.
  • with_hasher: Same behavior as new() just returns an empty BitSet. Note that hasher parameter can be any type.
  • with_capacity_and_hasher: Same behavior as new() just returns an empty bitset. Note that hasher parameter can be any type.
Commit count: 0

cargo fmt