一个位元向量
Add this to your Cargo.toml:
[dependencies]
bit-vec = "0.10"If you want serde support, include the feature like this:
[dependencies]
bit-vec = { version = "0.10", features = ["serde"] }If you want to use bit-vec in a program that has #![no_std], just drop default features:
[dependencies]
bit-vec = { version = "0.10", default-features = false }If you want to use serde with the alloc crate instead of std, use this:
[dependencies]
bit-vec = { version = "0.10", default-features = false, features = ["serde"] }If you want borsh-rs support, include it like this:
[dependencies]
bit-vec = { version = "0.10", features = ["borsh"] }Another available serialization library can be enabled with the
miniserde feature.
Dynamic collections implemented with compact bit vectors.
This is a simple example of the Sieve of Eratosthenes which calculates prime numbers up to a given limit.
…Dual-licensed for compatibility 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.
暂无开放 Issues,或尚未同步最近议题。