docs.rs failed to build bit-vec-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bit-vec-0.8.0
Collections implemented with bit vectors.
Examples
This is a simple example of the Sieve of Eratosthenes which calculates prime numbers up to a given limit.
#
use ;
use iter;
let max_prime = 10000;
// Store the primes as a BitSet
let primes = ;
// Simple primality tests below our max bound
let print_primes = 20;
print!;
for x in 0..print_primes
println!;
// We can manipulate the internal BitVec
let num_primes = primes.get_ref.iter.filter.count;
println!;