pub struct RawTwoSidedVec<T> { /* private fields */ }Implementations§
Source§impl<T> RawTwoSidedVec<T>
impl<T> RawTwoSidedVec<T>
pub fn new() -> Self
pub fn with_capacity(capacity: Capacity) -> Self
Sourcepub unsafe fn from_raw_parts(middle: *mut T, capacity: Capacity) -> Self
pub unsafe fn from_raw_parts(middle: *mut T, capacity: Capacity) -> Self
Create a vector based on an existing pointer and capacity
§Safety
Undefined behavior if middle doesn’t have enough space for capacity
elements (in either direction) or the memory was allocated incorrectly.
pub fn capacity(&self) -> &Capacity
pub fn middle(&self) -> *mut T
pub fn reserve(&mut self, request: CapacityRequest)
Trait Implementations§
Source§impl<T> Default for RawTwoSidedVec<T>
impl<T> Default for RawTwoSidedVec<T>
Auto Trait Implementations§
impl<T> Freeze for RawTwoSidedVec<T>
impl<T> RefUnwindSafe for RawTwoSidedVec<T>where
T: RefUnwindSafe,
impl<T> !Send for RawTwoSidedVec<T>
impl<T> !Sync for RawTwoSidedVec<T>
impl<T> Unpin for RawTwoSidedVec<T>where
T: Unpin,
impl<T> UnwindSafe for RawTwoSidedVec<T>where
T: RefUnwindSafe + 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