Searched refs:allocate (Results 1 – 3 of 3) sorted by relevance
232 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() method307 let new_ptr = self.allocate(new_layout)?; in shrink()322 match Global.allocate(layout) { in exchange_malloc()
187 AllocInit::Uninitialized => alloc.allocate(layout), in allocate_in()477 alloc.allocate(new_layout) in finish_grow()
470 let ptr = alloc.allocate(layout)?.cast(); in try_new_uninit_in()673 let ptr = Global.allocate(layout)?; in try_new_uninit_slice()