Lines Matching refs:core
4 use core::{alloc::GlobalAlloc, fmt::Debug, ptr::Unique};
21 const LAYOUT: core::alloc::Layout = {
29 let layout = core::alloc::Layout::from_size_align(
30 core::mem::size_of::<T>(),
31 max(ALIGN, core::mem::align_of::<T>()),
63 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
67 core::any::type_name::<T>(), in fmt()
68 core::mem::align_of::<T>(), in fmt()
70 core::mem::size_of::<T>() in fmt()
79 core::ptr::drop_in_place(self.inner.as_ptr()); in drop()
86 impl<T, const ALIGN: usize> core::ops::Deref for AlignedBox<T, ALIGN> {
94 impl<T, const ALIGN: usize> core::ops::DerefMut for AlignedBox<T, ALIGN> {