Lines Matching refs:T
18 pub struct AlignedBox<T, const ALIGN: usize> {
19 inner: Unique<T>,
22 impl<T, const ALIGN: usize> AlignedBox<T, ALIGN> {
32 core::mem::size_of::<T>(),
33 max(ALIGN, core::mem::align_of::<T>()),
51 T: SafeForZero, in new_zeroed()
63 pub unsafe fn new_unchecked(ptr: *mut T) -> Self { in new_unchecked()
70 impl<T, const ALIGN: usize> Debug for AlignedBox<T, ALIGN> {
75 core::any::type_name::<T>(), in fmt()
76 core::mem::align_of::<T>(), in fmt()
78 core::mem::size_of::<T>() in fmt()
83 impl<T, const ALIGN: usize> Drop for AlignedBox<T, ALIGN> {
94 impl<T, const ALIGN: usize> core::ops::Deref for AlignedBox<T, ALIGN> {
95 type Target = T;
102 impl<T, const ALIGN: usize> core::ops::DerefMut for AlignedBox<T, ALIGN> {
108 impl<T: Clone + SafeForZero, const ALIGN: usize> Clone for AlignedBox<T, ALIGN> {
110 let mut new: AlignedBox<T, ALIGN> = in clone()