pub struct Vec<T, A: Allocator> { /* private fields */ }Implementations§
Source§impl<T, A: Allocator> Vec<T, A>
impl<T, A: Allocator> Vec<T, A>
pub fn with_capacity_in(cap: usize, alloc: A) -> Result<Self, AllocError>
pub fn try_reserve(&mut self, additional: usize) -> Result<(), AllocError>
pub fn try_push(&mut self, val: T) -> Result<(), AllocError>
pub fn as_slice(&self) -> &[T]
pub fn as_mut_slice(&mut self) -> &mut [T]
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T, A> Freeze for Vec<T, A>where
A: Freeze,
impl<T, A> RefUnwindSafe for Vec<T, A>where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> !Send for Vec<T, A>
impl<T, A> !Sync for Vec<T, A>
impl<T, A> Unpin for Vec<T, A>where
A: Unpin,
impl<T, A> UnwindSafe for Vec<T, A>where
A: UnwindSafe,
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