Lines Matching defs:Layout
118 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) { in dealloc()
137 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc()
178 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl()
195 old_layout: Layout, in grow_impl()
196 new_layout: Layout, in grow_impl()
252 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) { in deallocate()
264 old_layout: Layout, in grow()
265 new_layout: Layout, in grow()
275 old_layout: Layout, in grow_zeroed()
276 new_layout: Layout, in grow_zeroed()
286 old_layout: Layout, in shrink()
287 new_layout: Layout, in shrink()
377 pub const fn handle_alloc_error(layout: Layout) -> ! { in handle_alloc_error()
378 const fn ct_error(_: Layout) -> ! { in handle_alloc_error()
382 fn rt_error(layout: Layout) -> ! { in handle_alloc_error()