title: What is the proper way to use bit array in Rust?
body: <p>I need a class with functionality equal to <code>vector&lt;bool&gt;</code> in C++. <a href="https://doc.rust-lang.org/1.2.0/std/collections/struct.BitVec.html" rel="noreferrer">The Rust documentation tells about <code>BitVec</code></a>, but <code>use std::collections::BitVec</code> causes <em>Unresolved import</em> error during compiling. According to <a href="https://github.com/rust-lang/rust/pull/27998" rel="noreferrer">a pull request</a>, <code>BitVec</code> has been removed. Is there any adequate replacement for it?</p>