Get the utilization ratio (allocated / total capacity)
(&self)
| 279 | |
| 280 | /// Get the utilization ratio (allocated / total capacity) |
| 281 | pub fn utilization(&self) -> f64 { |
| 282 | let stats = self.stats(); |
| 283 | stats.utilization |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | impl<T> Default for CompactArena<T> { |
no test coverage detected