pub type RustcBitSet = MixedBitSet<usize>;Expand description
A bitset specialized to usize indices.
Aliased Type§
pub enum RustcBitSet {
Small(DenseBitSet<usize>),
Large(ChunkedBitSet<usize>),
}Variants§
Small(DenseBitSet<usize>)
Large(ChunkedBitSet<usize>)
Trait Implementations§
Source§impl BitSet for RustcBitSet
impl BitSet for RustcBitSet
Source§fn iter(&self) -> impl Iterator<Item = usize>
fn iter(&self) -> impl Iterator<Item = usize>
Returns an iterator over all the indices of ones in the bit-set.
Source§fn intersect_changed(&mut self, other: &Self) -> bool
fn intersect_changed(&mut self, other: &Self) -> bool
Removes all ones in
self not in other, returning true if self changed.Source§fn union_changed(&mut self, other: &Self) -> bool
fn union_changed(&mut self, other: &Self) -> bool
Adds all ones from
other to self, returning true if self changed.Source§fn subtract_changed(&mut self, other: &Self) -> bool
fn subtract_changed(&mut self, other: &Self) -> bool
Removes all ones from
other in self, returning true if self changed.Source§fn insert_all(&mut self)
fn insert_all(&mut self)
Adds every element of the domain to
self.