Lines Matching refs:Layout

90 pub unsafe fn alloc(layout: Layout) -> *mut u8 {  in alloc()
108 pub unsafe fn dealloc(ptr: *mut u8, layout: Layout) { in dealloc() argument
127 pub unsafe fn realloc(ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 { in realloc() argument
161 pub unsafe fn alloc_zeroed(layout: Layout) -> *mut u8 { in alloc_zeroed()
168 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument
185 old_layout: Layout, in grow_impl() argument
186 new_layout: Layout, in grow_impl() argument
232 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate()
237 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed()
242 unsafe fn deallocate(&self, ptr: NonNull<u8>, layout: Layout) { in deallocate() argument
254 old_layout: Layout, in grow() argument
255 new_layout: Layout, in grow() argument
265 old_layout: Layout, in grow_zeroed() argument
266 new_layout: Layout, in grow_zeroed() argument
276 old_layout: Layout, in shrink() argument
277 new_layout: Layout, in shrink() argument
321 let layout = unsafe { Layout::from_size_align_unchecked(size, align) }; in exchange_malloc()
343 let layout = Layout::from_size_align_unchecked(size, align); in box_free()
374 pub const fn handle_alloc_error(layout: Layout) -> ! { in handle_alloc_error() argument
375 const fn ct_error(_: Layout) -> ! { in handle_alloc_error() argument
379 fn rt_error(layout: Layout) -> ! { in handle_alloc_error() argument
397 use crate::alloc::Layout;
410 let layout = unsafe { Layout::from_size_align_unchecked(size, align) }; in __rg_oom()
413 fn oom_impl(layout: Layout) -> !; in __rg_oom() argument