(&mut self, len: usize)
| 171 | /// growing it (potentially reallocating it) and writing `false` in the newly available bits. |
| 172 | #[inline] |
| 173 | pub fn resize(&mut self, len: usize) { |
| 174 | match len.checked_sub(self.len) { |
| 175 | Some(delta) => self.advance(delta), |
| 176 | None => self.truncate(len), |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | /// Appends a boolean `v` into the buffer |
| 181 | #[inline] |