(&self, layout: alloc::alloc::Layout)
| 93 | } |
| 94 | unsafe impl GlobalAlloc for AllocFromCtx { |
| 95 | unsafe fn alloc(&self, layout: alloc::alloc::Layout) -> *mut u8 { |
| 96 | (self.a)(layout.size(), layout.align()) |
| 97 | } |
| 98 | |
| 99 | unsafe fn dealloc(&self, ptr: *mut u8, layout: alloc::alloc::Layout) { |
| 100 | (self.d)(ptr, layout.size(), layout.align()); |
nothing calls this directly
no outgoing calls
no test coverage detected