MCPcopy Create free account
hub / github.com/Craig-Macomber/lol_alloc / alloc

Method alloc

lol_alloc/src/single_threaded_allocator.rs:26–28  ·  view source on GitHub ↗
(&self, layout: Layout)

Source from the content-addressed store, hash-verified

24
25unsafe impl<T: GlobalAlloc> GlobalAlloc for AssumeSingleThreaded<T> {
26 unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
27 self.inner.alloc(layout)
28 }
29
30 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
31 self.inner.dealloc(ptr, layout);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected