Diagnostic — how many allocated slots are currently in use.
(&self)
| 243 | |
| 244 | /// Diagnostic — how many allocated slots are currently in use. |
| 245 | pub fn in_use_count(&self) -> usize { |
| 246 | self.slots.iter().filter(|s| s.in_use).count() |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | impl Default for TransientPool { |