Struct rustc_data_structures::bitvec::BitVector
[−]
[src]
pub struct BitVector { // some fields omitted }
Unstable (
rustc_private
)A very simple BitVector type.
Methods
impl BitVector
[src]
fn new(num_bits: usize) -> BitVector
fn contains(&self, bit: usize) -> bool
fn insert(&mut self, bit: usize) -> bool
Unstable (
rustc_private
)Returns true if the bit has changed.
fn insert_all(&mut self, all: &BitVector) -> bool
fn grow(&mut self, num_bits: usize)
fn iter<'a>(&'a self) -> BitVectorIter<'a>
Unstable (
rustc_private
)Iterates over indexes of set bits in a sorted order
Trait Implementations
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
Derived 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