(&mut self)
| 21 | } |
| 22 | } |
| 23 | pub fn alloc(&mut self) -> usize { |
| 24 | if let Some(id) = self.recycled.pop() { |
| 25 | id |
| 26 | } else { |
| 27 | self.current += 1; |
| 28 | self.current - 1 |
| 29 | } |
| 30 | } |
| 31 | pub fn dealloc(&mut self, id: usize) { |
| 32 | assert!(id < self.current); |
| 33 | assert!( |
no outgoing calls
no test coverage detected