(&self, layout: alloc::alloc::Layout)
| 28 | } |
| 29 | unsafe impl GlobalAlloc for AllocFromCtx { |
| 30 | unsafe fn alloc(&self, layout: alloc::alloc::Layout) -> *mut u8 { |
| 31 | (self.a)(layout) |
| 32 | } |
| 33 | |
| 34 | unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::alloc::Layout) { |
| 35 | (self.d)(ptr, layout) |