[][src]Struct alloc_many_collections::vec::Vec

pub struct Vec<A, T> where
    A: Alloc
{ /* fields omitted */ }

A contiguous growable array type, written Vec<T> but pronounced 'vector'.

Methods

impl<A, T> Vec<A, T> where
    A: Alloc
[src]

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]

type Target = [T]

The resulting type after dereferencing.

impl<A, T> DerefMut for Vec<A, T> where
    A: Alloc
[src]

Auto Trait Implementations

impl<A, T> Send for Vec<A, T> where
    A: Send,
    T: Send

impl<A, T> Sync for Vec<A, T> where
    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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]