Struct rustc_data_structures::bitvec::BitVector
[−]
[src]
pub struct BitVector { /* fields omitted */ }A very simple BitVector type.
Methods
impl BitVector[src]
pub fn new(num_bits: usize) -> BitVector[src]
pub fn clear(&mut self)[src]
pub fn count(&self) -> usize[src]
pub fn contains(&self, bit: usize) -> bool[src]
pub fn insert(&mut self, bit: usize) -> bool[src]
Returns true if the bit has changed.
pub fn remove(&mut self, bit: usize) -> bool[src]
Returns true if the bit has changed.
pub fn insert_all(&mut self, all: &BitVector) -> bool[src]
pub fn grow(&mut self, num_bits: usize)[src]
ⓘImportant traits for BitVectorIter<'a>pub fn iter<'a>(&'a self) -> BitVectorIter<'a>[src]
ⓘImportant traits for BitVectorIter<'a>
Iterates over indexes of set bits in a sorted order
Trait Implementations
impl Clone for BitVector[src]
fn clone(&self) -> BitVector[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for BitVector[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl PartialEq for BitVector[src]
fn eq(&self, __arg_0: &BitVector) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &BitVector) -> bool[src]
This method tests for !=.