Struct rustc_data_structures::bitvec::BitVector [−][src]
pub struct BitVector { /* fields omitted */ }A very simple BitVector type.
Methods
impl BitVector[src]
impl BitVectorpub fn new(num_bits: usize) -> BitVector[src]
pub fn new(num_bits: usize) -> BitVectorpub fn clear(&mut self)[src]
pub fn clear(&mut self)pub fn count(&self) -> usize[src]
pub fn count(&self) -> usizepub fn contains(&self, bit: usize) -> bool[src]
pub fn contains(&self, bit: usize) -> boolpub fn insert(&mut self, bit: usize) -> bool[src]
pub fn insert(&mut self, bit: usize) -> boolReturns true if the bit has changed.
pub fn remove(&mut self, bit: usize) -> bool[src]
pub fn remove(&mut self, bit: usize) -> boolReturns true if the bit has changed.
pub fn insert_all(&mut self, all: &BitVector) -> bool[src]
pub fn insert_all(&mut self, all: &BitVector) -> boolpub fn grow(&mut self, num_bits: usize)[src]
pub fn grow(&mut self, num_bits: usize)ⓘImportant traits for BitVectorIter<'a>pub fn iter<'a>(&'a self) -> BitVectorIter<'a>[src]
ⓘImportant traits for BitVectorIter<'a>
pub fn iter<'a>(&'a self) -> BitVectorIter<'a>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)1.0.0
[src]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