Nuke everything. For tests, and for catastrophic format changes.
(&mut self)
| 162 | |
| 163 | /// Nuke everything. For tests, and for catastrophic format changes. |
| 164 | pub fn clear(&mut self) { |
| 165 | if !self.slots.is_empty() { |
| 166 | self.slots.clear(); |
| 167 | self.rebuild_epoch += 1; |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | /// Acquire a transient matching `desc`. Returns either a freed |
| 172 | /// slot from the reuse pool or allocates a new one via `device`. |
no outgoing calls