Struct rustc_data_structures::bitvec::BitVector
[−]
[src]
pub struct BitVector { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (
rustc_private
)A very simple BitVector type.
Methods
impl BitVector
[src]
fn new(num_bits: usize) -> BitVector
🔬 This is a nightly-only experimental API. (
rustc_private
)fn clear(&mut self)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn count(&self) -> usize
🔬 This is a nightly-only experimental API. (
rustc_private
)fn contains(&self, bit: usize) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)fn insert(&mut self, bit: usize) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)Returns true if the bit has changed.
fn insert_all(&mut self, all: &BitVector) -> bool
🔬 This is a nightly-only experimental API. (
rustc_private
)fn grow(&mut self, num_bits: usize)
🔬 This is a nightly-only experimental API. (
rustc_private
)fn iter<'a>(&'a self) -> BitVectorIter<'a>
🔬 This is a nightly-only experimental API. (
rustc_private
)Iterates over indexes of set bits in a sorted order
Trait Implementations
impl Clone for BitVector
[src]
fn clone(&self) -> BitVector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for BitVector
[src]
impl PartialEq for BitVector
[src]
fn eq(&self, __arg_0: &BitVector) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BitVector) -> bool
This method tests for !=
.
impl FromIterator<bool> for BitVector
[src]
fn from_iter<I>(iter: I) -> BitVector where I: IntoIterator<Item=bool>
Creates a value from an iterator. Read more