Lines Matching defs:Layout
28 alloc::Layout,
145 /// via [`Layout`].
188 fn alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> {
191 unsafe { Self::realloc(None, layout, Layout::new::<()>(), flags, nid) }
207 /// to `realloc` guarantees that the new or grown buffer has at least `Layout::size` bytes, but
224 /// - `old_layout` must match the `Layout` the allocation has been created with.
236 layout: Layout,
237 old_layout: Layout,
249 /// - `layout` must match the `Layout` the allocation has been created with.
251 unsafe fn free(ptr: NonNull<u8>, layout: Layout) {
253 // allocator. We are passing a `Layout` with the smallest possible alignment, so it is
258 Layout::new::<()>(),
268 pub(crate) fn dangling_from_layout(layout: Layout) -> NonNull<u8> {