new_value != value
}
+ /// Sets all bits to true.
+ pub fn insert_all(&mut self) {
+ for data in &mut self.data {
+ *data = u128::max_value();
+ }
+ }
+
/// Returns true if the bit has changed.
#[inline]
pub fn remove(&mut self, bit: C) -> bool {
self.vector[into].merge(from)
}
+ /// Add all bits to the given row.
+ pub fn add_all(&mut self, row: R) {
+ self.ensure_row(row);
+ self.vector[row].insert_all();
+ }
+
/// Number of elements in the matrix.
pub fn len(&self) -> usize {
self.vector.len()