Struct AlignedStorage

#[repr(C)]
pub(in ::slice::sort::stable) struct AlignedStorage<T, const N: usize> { pub(in ::slice::sort::stable) _align: [T; 0], pub(in ::slice::sort::stable) storage: [MaybeUninit<u8>; N] }

Fields

_align: [T; 0]
storage: [MaybeUninit<u8>; N]

Implementations

impl<T, const N: usize> AlignedStorage<T, N>

fn new() -> Self
fn as_uninit_slice_mut(&mut self) -> &mut [MaybeUninit<T>]

Auto Trait Implementations

impl<T, const N: usize> Freeze for AlignedStorage<T, N> where [T; 0]: Freeze, [MaybeUninit<u8>; N]: Freeze,

impl<T, const N: usize> RefUnwindSafe for AlignedStorage<T, N> where [T; 0]: RefUnwindSafe, [MaybeUninit<u8>; N]: RefUnwindSafe,

impl<T, const N: usize> Send for AlignedStorage<T, N> where [T; 0]: Send, [MaybeUninit<u8>; N]: Send,

impl<T, const N: usize> Sync for AlignedStorage<T, N> where [T; 0]: Sync, [MaybeUninit<u8>; N]: Sync,

impl<T, const N: usize> Unpin for AlignedStorage<T, N> where [T; 0]: Unpin, [MaybeUninit<u8>; N]: Unpin,

impl<T, const N: usize> UnsafeUnpin for AlignedStorage<T, N> where [T; 0]: UnsafeUnpin, [MaybeUninit<u8>; N]: UnsafeUnpin,

impl<T, const N: usize> UnwindSafe for AlignedStorage<T, N> where [T; 0]: UnwindSafe, [MaybeUninit<u8>; N]: UnwindSafe,

Blanket Implementations

impl<T> Any for AlignedStorage<T, N> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for AlignedStorage<T, N> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for AlignedStorage<T, N> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for AlignedStorage<T, N>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for AlignedStorage<T, N> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for AlignedStorage<T, N>

impl<T, U> Into<U> for AlignedStorage<T, N> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for AlignedStorage<T, N> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for AlignedStorage<T, N> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>