Union flex_alloc::storage::ByteStorage
source · #[repr(C)]
pub union ByteStorage<T, const N: usize> {
/* private fields */
}Implementations§
source§impl<T, const N: usize> ByteStorage<T, N>
impl<T, const N: usize> ByteStorage<T, N>
pub const fn new() -> Self
pub fn as_uninit_slice(&mut self) -> &mut [MaybeUninit<u8>]
Trait Implementations§
source§impl<T, const N: usize> Debug for ByteStorage<T, N>
impl<T, const N: usize> Debug for ByteStorage<T, N>
source§impl<'a, T, const N: usize> RawAllocIn for &'a mut ByteStorage<T, N>
impl<'a, T, const N: usize> RawAllocIn for &'a mut ByteStorage<T, N>
type RawAlloc = FixedAlloc<'a>
fn try_alloc_in( self, layout: Layout, ) -> Result<(NonNull<[u8]>, Self::RawAlloc), StorageError>
fn try_alloc_in_zeroed( self, layout: Layout, ) -> Result<(NonNull<[u8]>, Self::RawAlloc), StorageError>
source§impl<'a, T: 'static, const N: usize> WithAlloc<'a> for &'a mut ByteStorage<T, N>
impl<'a, T: 'static, const N: usize> WithAlloc<'a> for &'a mut ByteStorage<T, N>
type NewIn<A: 'a> = SpillStorage<'a, &'a mut ByteStorage<T, N>, A>
fn with_alloc_in<A: RawAlloc + 'a>(self, alloc: A) -> Self::NewIn<A>
fn with_alloc(self) -> Self::NewIn<Global>
Auto Trait Implementations§
impl<T, const N: usize> Freeze for ByteStorage<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for ByteStorage<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for ByteStorage<T, N>where
T: Send,
impl<T, const N: usize> Sync for ByteStorage<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ByteStorage<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for ByteStorage<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