Struct rustc_data_structures::bitvec::BitVector
[−]
[src]
pub struct BitVector { /* fields omitted */ }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn clear(&mut self)
[src]
pub fn clear(&mut self)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn count(&self) -> usize
[src]
pub fn count(&self) -> usize
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn contains(&self, bit: usize) -> bool
[src]
pub fn contains(&self, bit: usize) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn insert(&mut self, bit: usize) -> bool
[src]
pub fn insert(&mut self, bit: usize) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns true if the bit has changed.
pub fn remove(&mut self, bit: usize) -> bool
[src]
pub fn remove(&mut self, bit: usize) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn grow(&mut self, num_bits: usize)
[src]
pub fn grow(&mut self, num_bits: usize)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
ⓘImportant traits for BitVectorIter<'a>pub fn iter<'a>(&'a self) -> BitVectorIter<'a>
[src]
pub fn iter<'a>(&'a self) -> BitVectorIter<'a>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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)
Performs copy-assignment from source
. Read more
impl Debug for BitVector
[src]
impl Debug for BitVector
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for BitVector
[src]
impl PartialEq for BitVector
fn eq(&self, __arg_0: &BitVector) -> bool
[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
[src]
fn ne(&self, __arg_0: &BitVector) -> bool
This method tests for !=
.
impl FromIterator<bool> for BitVector
[src]
impl FromIterator<bool> for BitVector