&gt; Rust has no equivalent to bitset (yet),<p>I believe BitVec [1][2] might be what you&#x27;re looking for. It used to be part of the standard library but was moved out around Rust 1.3. While it defaults to using a 32 bit unsigned int as the basis for its underlying storage, it allows you to choose your storage type.<p>[1] <a href="https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;bit-vec&#x2F;" rel="nofollow">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;bit-vec&#x2F;</a>
[2] <a href="http:&#x2F;&#x2F;contain-rs.github.io&#x2F;bit-vec&#x2F;bit_vec&#x2F;struct.BitVec.html" rel="nofollow">http:&#x2F;&#x2F;contain-rs.github.io&#x2F;bit-vec&#x2F;bit_vec&#x2F;struct.BitVec.ht...</a>