Lines Matching refs:core
4 use core::{alloc::GlobalAlloc, fmt::Debug, ptr::Unique};
23 const LAYOUT: core::alloc::Layout = {
31 let layout = core::alloc::Layout::from_size_align(
32 core::mem::size_of::<T>(),
33 max(ALIGN, core::mem::align_of::<T>()),
71 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt()
75 core::any::type_name::<T>(), in fmt()
76 core::mem::align_of::<T>(), in fmt()
78 core::mem::size_of::<T>() in fmt()
87 core::ptr::drop_in_place(self.inner.as_ptr()); in drop()
94 impl<T, const ALIGN: usize> core::ops::Deref for AlignedBox<T, ALIGN> {
102 impl<T, const ALIGN: usize> core::ops::DerefMut for AlignedBox<T, ALIGN> {