Struct rustc_data_structures::bitvec::BitVector [−][src]
pub struct BitVector { /* fields omitted */ }
A very simple BitVector type.
Methods
impl BitVector
[src]
impl BitVector
pub fn new(num_bits: usize) -> BitVector
[src]
pub fn new(num_bits: usize) -> BitVector
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
pub fn count(&self) -> usize
[src]
pub fn count(&self) -> usize
pub fn contains(&self, bit: usize) -> bool
[src]
pub fn contains(&self, bit: usize) -> bool
pub fn insert(&mut self, bit: usize) -> bool
[src]
pub fn insert(&mut self, bit: usize) -> bool
Returns true if the bit has changed.
pub fn remove(&mut self, bit: usize) -> bool
[src]
pub fn remove(&mut self, bit: usize) -> bool
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
pub 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 BitVector
fn clone(&self) -> BitVector
[src]
fn clone(&self) -> BitVector
Returns 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 BitVector
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for BitVector
[src]
impl PartialEq for BitVector
fn eq(&self, other: &BitVector) -> bool
[src]
fn eq(&self, other: &BitVector) -> bool
This 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) -> bool
This method tests for !=
.
impl FromIterator<bool> for BitVector
[src]
impl FromIterator<bool> for BitVector