#[repr(C)]struct AlignedStorage<T, const N: usize> {
_align: [T; 0],
storage: [MaybeUninit<u8>; N],
}🔬This is a nightly-only experimental API. (
slice_internals)Fields§
§_align: [T; 0]🔬This is a nightly-only experimental API. (
§slice_internals)storage: [MaybeUninit<u8>; N]🔬This is a nightly-only experimental API. (
slice_internals)Implementations§
Source§impl<T, const N: usize> AlignedStorage<T, N>
impl<T, const N: usize> AlignedStorage<T, N>
fn new() -> Self
🔬This is a nightly-only experimental API. (
slice_internals)fn as_uninit_slice_mut(&mut self) -> &mut [MaybeUninit<T>]
🔬This is a nightly-only experimental API. (
slice_internals)Auto Trait Implementations§
impl<T, const N: usize> Freeze for AlignedStorage<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for AlignedStorage<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for AlignedStorage<T, N>where
T: Send,
impl<T, const N: usize> Sync for AlignedStorage<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for AlignedStorage<T, N>where
T: Unpin,
impl<T, const N: usize> UnsafeUnpin for AlignedStorage<T, N>where
T: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for AlignedStorage<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const SIZE: usize = _
#[doc(hidden)] const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)] const ALIGN: usize = _
#[doc(hidden)] const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more