Crate bit_vec
Description
Dynamic collections implemented with compact bit vectors.
Examples
This is a simple example of the Sieve of Eratosthenes which calculates prime numbers up to a given limit.
use BitVec;
let max_prime = 10000;
// Store the primes as a BitVec
let primes = ;
// Simple primality tests below our max bound
let print_primes = 20;
print!;
for x in 0..print_primes
println!;
let num_primes = primes.iter.filter.count;
println!;
assert_eq!;
Structs
Traits
- BitBlock Abstracts over a pile of bits (basically unsigned primitives)