Struct rustc_data_structures::bitvec::BitVector [−][src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A very simple BitVector type.
Fields
data: Vec<u128>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl BitVector[src]
impl BitVectorpub fn new(num_bits: usize) -> BitVector[src]
pub fn new(num_bits: usize) -> BitVector🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn clear(&mut self)[src]
pub fn clear(&mut self)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn count(&self) -> usize[src]
pub fn count(&self) -> usize🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn contains(&self, bit: usize) -> bool[src]
pub fn contains(&self, bit: usize) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn insert(&mut self, bit: usize) -> bool[src]
pub fn insert(&mut self, bit: usize) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns true if the bit has changed.
pub fn remove(&mut self, bit: usize) -> bool[src]
pub fn remove(&mut self, bit: usize) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Returns true if the bit has changed.
pub fn insert_all(&mut self, all: &BitVector) -> bool[src]
pub fn insert_all(&mut self, all: &BitVector) -> bool🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
pub fn grow(&mut self, num_bits: usize)[src]
pub fn grow(&mut self, num_bits: usize)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
ⓘImportant traits for BitVectorIter<'a>pub fn iter<'a>(&'a self) -> BitVectorIter<'a>[src]
pub fn iter<'a>(&'a self) -> BitVectorIter<'a>🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Iterates over indexes of set bits in a sorted order
Trait Implementations
impl Clone for BitVector[src]
impl Clone for BitVectorfn clone(&self) -> BitVector[src]
fn clone(&self) -> BitVectorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for BitVector[src]
impl Debug for BitVectorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for BitVector[src]
impl PartialEq for BitVectorfn eq(&self, other: &BitVector) -> bool[src]
fn eq(&self, other: &BitVector) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &BitVector) -> bool[src]
fn ne(&self, other: &BitVector) -> boolThis method tests for !=.
impl FromIterator<bool> for BitVector[src]
impl FromIterator<bool> for BitVector