ROADMAP v0.2.0 - Memory budget soft allocation (see ROADMAP.md §1)
(&self, bytes: usize)
| 131 | /// Useful for soft limits where we want to continue with degraded performance. |
| 132 | #[allow(dead_code)] // ROADMAP v0.2.0 - Memory budget soft allocation (see ROADMAP.md §1) |
| 133 | pub fn try_allocate(&self, bytes: usize) -> bool { |
| 134 | self.allocate(bytes).is_ok() |
| 135 | } |
| 136 | |
| 137 | /// Release memory back to the budget |
| 138 | /// |