#bit-set

default-vec2

A simple Vec-like data structure with default elements and a bitset built using it

4 releases

0.1.3 Dec 15, 2024
0.1.2 Dec 14, 2024
0.1.1 Dec 14, 2024
0.1.0 Dec 14, 2024

#1424 in Data structures

Download history 34/week @ 2024-12-08 228/week @ 2024-12-15 4/week @ 2024-12-22 1/week @ 2025-01-12 9/week @ 2025-02-16 4/week @ 2025-02-23

99 downloads per month

MIT license

15KB
265 lines

default-vec2

A simple Vec-like data structure with default elements and a bitset built using it.

It is #![no-std], and #![forbid(unsafe_code)], but does use alloc

Comparisons

vs default-vec

  • This crate does not use unsafe code or rely on the unstable RawVec type

vs bit-set

  • This BitSet fits in 2 usizes while bit-set takes 4.

vs fixedbitset

  • This BitSet fits in 2 usizes while fixedbitset takes 3.
  • This BitSet will automatically increase its capacity as need
  • This crate doesn't use any unsafe code

Dependencies

~155KB