(&mut self, first_block_index: usize, nb_blocks: usize, plug: bool)
| 345 | } |
| 346 | |
| 347 | fn set_range(&mut self, first_block_index: usize, nb_blocks: usize, plug: bool) { |
| 348 | for state in self |
| 349 | .bitmap |
| 350 | .iter_mut() |
| 351 | .skip(first_block_index) |
| 352 | .take(nb_blocks) |
| 353 | { |
| 354 | *state = plug; |
| 355 | } |
| 356 | } |
| 357 | |
| 358 | fn inner(&self) -> &Vec<bool> { |
| 359 | &self.bitmap |
no test coverage detected