Make SparseBitMatrix::ensure_row public to enable general mutation of rows
This commit is contained in:
parent
a49e38e672
commit
0ca51b6b66
@ -956,7 +956,7 @@ impl<R: Idx, C: Idx> SparseBitMatrix<R, C> {
|
|||||||
Self { num_columns, rows: IndexVec::new() }
|
Self { num_columns, rows: IndexVec::new() }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
|
pub fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
|
||||||
// Instantiate any missing rows up to and including row `row` with an
|
// Instantiate any missing rows up to and including row `row` with an
|
||||||
// empty HybridBitSet.
|
// empty HybridBitSet.
|
||||||
self.rows.ensure_contains_elem(row, || None);
|
self.rows.ensure_contains_elem(row, || None);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user