1 | use std::marker::PhantomData; |
---|---|
2 | use std::mem::MaybeUninit; |
3 | |
4 | pub(crate) struct MakeMaybeUninit<T, const N: usize>(PhantomData<fn() -> T>); |
5 | |
6 | impl<T, const N: usize> MakeMaybeUninit<T, N> { |
7 | pub(crate) const VALUE: MaybeUninit<T> = MaybeUninit::uninit(); |
8 | |
9 | pub(crate) const ARRAY: [MaybeUninit<T>; N] = [Self::VALUE; N]; |
10 | } |
11 | |
12 |