pub struct RawVec<T> { /* private fields */ }
Expand description
Raw representation of a vector defined by a pointer, capacity and length.
All elements within the length of the vector are assumed to be initialized; elements between length and capacity are assumed to be uninitialized.
§SAFETY
Does not release memory on Drop.
Trait Implementations§
Source§impl<T> AsRawSlice<T> for RawVec<T>
impl<T> AsRawSlice<T> for RawVec<T>
Auto Trait Implementations§
impl<T> Freeze for RawVec<T>
impl<T> RefUnwindSafe for RawVec<T>where
T: RefUnwindSafe,
impl<T> !Send for RawVec<T>
impl<T> !Sync for RawVec<T>
impl<T> Unpin for RawVec<T>
impl<T> UnwindSafe for RawVec<T>where
T: RefUnwindSafe,
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