refactor: replace some usage of MutableBitmap by BitVec (#610)

This commit is contained in:
Yingwen
2022-11-21 17:36:53 +08:00
committed by GitHub
parent 62fcb54258
commit 0791c65149
8 changed files with 47 additions and 73 deletions

View File

@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use bitvec::prelude as bv;
pub use bitvec::prelude;
// `Lsb0` provides the best codegen for bit manipulation,
// see https://github.com/bitvecto-rs/bitvec/blob/main/doc/order/Lsb0.md
pub type BitVec = bv::BitVec<u8, bv::Lsb0>;
pub type BitVec = prelude::BitVec<u8>;

View File

@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
pub mod bitset;
pub mod bit_vec;
pub mod buffer;
pub mod bytes;
pub use bitset::BitVec;
pub use bit_vec::BitVec;