[−][src]Struct generic_vec::raw::UninitSlice
An uninitialized slice storage
Implementations
impl<T> UninitSlice<T>
[src]
pub fn from_mut(buffer: &mut [MaybeUninit<T>]) -> &mut Self
[src]
Create a new UninitSlice
storage
pub unsafe fn to_mut(&mut self) -> &mut [MaybeUninit<T>]
[src]
Get the backing value of the this Uninit
storage
Safety
You may not write uninitialized memory to this slice
Trait Implementations
impl<T> Send for UninitSlice<T>
[src]
impl<T, U> Storage<U> for UninitSlice<T>
[src]
pub const IS_ALIGNED: bool
[src]
pub fn capacity(&self) -> usize
[src]
pub fn as_ptr(&self) -> *const U
[src]
pub fn as_mut_ptr(&mut self) -> *mut U
[src]
pub fn reserve(&mut self, new_capacity: usize)
[src]
pub fn try_reserve(&mut self, capacity: usize) -> bool
[src]
impl<T> Sync for UninitSlice<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for UninitSlice<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Unpin for UninitSlice<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for UninitSlice<T> where
T: UnwindSafe,
T: UnwindSafe,