Struct flex_alloc::storage::ArrayStorage
source · pub struct ArrayStorage<A>(pub A);Tuple Fields§
§0: AImplementations§
source§impl<A> ArrayStorage<A>
impl<A> ArrayStorage<A>
source§impl<T, const N: usize> ArrayStorage<[MaybeUninit<T>; N]>
impl<T, const N: usize> ArrayStorage<[MaybeUninit<T>; N]>
pub fn as_uninit_slice(&mut self) -> &mut [MaybeUninit<T>]
Trait Implementations§
source§impl<A: Clone> Clone for ArrayStorage<A>
impl<A: Clone> Clone for ArrayStorage<A>
source§fn clone(&self) -> ArrayStorage<A>
fn clone(&self) -> ArrayStorage<A>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<A: Debug> Debug for ArrayStorage<A>
impl<A: Debug> Debug for ArrayStorage<A>
source§impl<A: Default> Default for ArrayStorage<A>
impl<A: Default> Default for ArrayStorage<A>
source§fn default() -> ArrayStorage<A>
fn default() -> ArrayStorage<A>
Returns the “default value” for a type. Read more
source§impl<A: Ord> Ord for ArrayStorage<A>
impl<A: Ord> Ord for ArrayStorage<A>
source§fn cmp(&self, other: &ArrayStorage<A>) -> Ordering
fn cmp(&self, other: &ArrayStorage<A>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<A: PartialEq> PartialEq for ArrayStorage<A>
impl<A: PartialEq> PartialEq for ArrayStorage<A>
source§impl<A: PartialOrd> PartialOrd for ArrayStorage<A>
impl<A: PartialOrd> PartialOrd for ArrayStorage<A>
source§impl<'a, T, const N: usize> VecNewIn<T> for &'a mut ArrayStorage<[MaybeUninit<T>; N]>
impl<'a, T, const N: usize> VecNewIn<T> for &'a mut ArrayStorage<[MaybeUninit<T>; N]>
source§impl<'a, T> VecNewIn<T> for ArrayStorage<&'a mut [MaybeUninit<T>]>
impl<'a, T> VecNewIn<T> for ArrayStorage<&'a mut [MaybeUninit<T>]>
source§impl<'a, T: 'a, const N: usize> WithAlloc<'a> for &'a mut ArrayStorage<[MaybeUninit<T>; N]>
impl<'a, T: 'a, const N: usize> WithAlloc<'a> for &'a mut ArrayStorage<[MaybeUninit<T>; N]>
type NewIn<A: 'a> = SpillStorage<'a, &'a mut [MaybeUninit<T>], A>
fn with_alloc_in<A: RawAlloc + 'a>(self, alloc: A) -> Self::NewIn<A>
fn with_alloc(self) -> Self::NewIn<Global>
source§impl<'a, T: 'a> WithAlloc<'a> for ArrayStorage<&'a mut [MaybeUninit<T>]>
impl<'a, T: 'a> WithAlloc<'a> for ArrayStorage<&'a mut [MaybeUninit<T>]>
type NewIn<A: 'a> = SpillStorage<'a, &'a mut [MaybeUninit<T>], A>
fn with_alloc_in<A: RawAlloc + 'a>(self, alloc: A) -> Self::NewIn<A>
fn with_alloc(self) -> Self::NewIn<Global>
impl<A: Copy> Copy for ArrayStorage<A>
impl<A: Eq> Eq for ArrayStorage<A>
impl<A> StructuralPartialEq for ArrayStorage<A>
Auto Trait Implementations§
impl<A> Freeze for ArrayStorage<A>where
A: Freeze,
impl<A> RefUnwindSafe for ArrayStorage<A>where
A: RefUnwindSafe,
impl<A> Send for ArrayStorage<A>where
A: Send,
impl<A> Sync for ArrayStorage<A>where
A: Sync,
impl<A> Unpin for ArrayStorage<A>where
A: Unpin,
impl<A> UnwindSafe for ArrayStorage<A>where
A: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)