#container #data-structure #bitvec #bitset

fixedbitset

FixedBitSet is a simple bitset collection

15 releases

0.1.9 Mar 26, 2018
0.1.8 Sep 12, 2017
0.1.7 Aug 6, 2017
0.1.6 Apr 15, 2017
0.0.5 May 31, 2015

#15 in Data structures

Download history 11865/week @ 2018-10-21 11285/week @ 2018-10-28 12012/week @ 2018-11-04 12426/week @ 2018-11-11 11459/week @ 2018-11-18 11611/week @ 2018-11-25 13223/week @ 2018-12-02 13617/week @ 2018-12-09 13768/week @ 2018-12-16 9569/week @ 2018-12-23 10546/week @ 2018-12-30 12662/week @ 2019-01-06 11933/week @ 2019-01-13 13799/week @ 2019-01-20 12762/week @ 2019-01-27

23,700 downloads per month
Used in 251 crates (14 directly)

MIT/Apache

30KB
845 lines

fixedbitset

A simple bitset container for Rust

Please read the API documentation here

build_status crates

Recent Changes

  • 0.1.9

    • Add intersection, union, difference iterators by @jrraymond

    • Add intersection: & and union: | operator implementations by @jrraymond

    • Add Extend and FromIterator implementations (from sequences of bit indices) by @jrraymond

  • 0.1.8

    • Add missing #[inline] on the ones iterator

    • Fix docs for insert_range, set_range

  • 0.1.7

    • Add fast methods .insert_range, .set_range by @kennytm

  • 0.1.6

    • Add iterator .ones() by @mneumann

    • Fix bug with .count_ones() where it would erronously have an out-of-bounds panic for even block endpoints

  • 0.1.5

    • Add method .count_ones(range).

  • 0.1.4

    • Remove an assertion in .copy_bit(from, to) so that it is in line with the documentation. The from bit does not need to be in bounds.

    • Improve .grow() to use Vec::resize internally.

  • 0.1.3

    • Add method .put() to enable a bit and return previous value

  • 0.1.2

    • Add method .copy_bit() (by fuine)

    • impl Default

  • 0.1.1

    • Update documentation URL

  • 0.1.0

    • Add method .grow()

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

No runtime deps