[−][src]Type Definition generic_vec::raw::Slice
type Slice<'a, T> = Init<&'a mut [T]>;
An initialized slice storage, can only store Copy types
type Slice<'a, T> = Init<&'a mut [T]>;
An initialized slice storage, can only store Copy types
impl<T: Copy, '_> Storage<T> for Slice<'_, T>[src]pub fn is_valid_storage() -> bool[src]pub fn capacity(&self) -> usize[src]pub fn as_ptr(&self) -> *const T[src]pub fn as_mut_ptr(&mut self) -> *mut T[src]pub fn reserve(&mut self, capacity: usize)[src]pub fn try_reserve(&mut self, capacity: usize) -> Result<(), AllocError>[src]impl<T: Copy, '_> StorageInit<T> for Slice<'_, T>[src]