[−][src]Struct alloc_many_collections::vec::Vec
A contiguous growable array type, written Vec<T> but pronounced 'vector'.
Methods
impl<A, T> Vec<A, T> where
A: Alloc, [src]
A: Alloc,
pub fn new() -> Self[src]
Constructs a new, empty Vec<T>
pub fn capacity(&self) -> usize[src]
Returns the number of elements the vector can hold without reallocating.
pub fn push(&mut self, elem: T)[src]
Appends an element to the back of a collection.
pub fn pop(&mut self) -> Option<T>[src]
Removes the last element from a vector and returns it, or None if it is empty.
pub fn reserve(&mut self, additional: usize)[src]
Reserves capacity for at least additional more elements to be inserted in the given
Vec
Trait Implementations
impl<A, T> Deref for Vec<A, T> where
A: Alloc, [src]
A: Alloc,
impl<A, T> DerefMut for Vec<A, T> where
A: Alloc, [src]
A: Alloc,
Auto Trait Implementations
impl<A, T> Send for Vec<A, T> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<A, T> Sync for Vec<A, T> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,