[][src]Struct rs_collections::vec::Vec

#[repr(C)]pub struct Vec<T> { /* fields omitted */ }

Implementations

impl<T> Vec<T>[src]

pub fn with_capacity(c: usize) -> Self[src]

pub fn new() -> Self[src]

pub fn as_slice(&self) -> &[T][src]

pub fn as_mut_slice(&mut self) -> &mut [T][src]

pub fn len(&self) -> usize[src]

pub fn push(&mut self, t: T)[src]

pub fn pop(&mut self) -> Option<T>[src]

pub fn get_unchecked(&self, idx: usize) -> &T[src]

pub fn get_unchecked_mut(&mut self, idx: usize) -> &mut T[src]

pub fn to_iter<'a>(&self) -> Iter<'a, T>[src]

pub fn last(&self) -> Option<&T>[src]

pub fn capacity(&self) -> usize[src]

pub fn iter(&self) -> Iter<T>[src]

pub fn iter_mut(&mut self) -> IterMut<T>[src]

pub fn from_raw_parts(ptr: *mut T, len: usize, cap: usize) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Vec<T>[src]

impl<T> Drop for Vec<T>[src]

impl<A> FromIterator<A> for Vec<A>[src]

impl<T, I: SliceIndex<[T]>> Index<I> for Vec<T>[src]

type Output = I::Output

The returned type after indexing.

impl<T, I: SliceIndex<[T]>> IndexMut<I> for Vec<T>[src]

impl<'a, T> IntoIterator for &'a Vec<T>[src]

type Item = &'a T

The type of the elements being iterated over.

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?

impl<'a, T> IntoIterator for &'a mut Vec<T>[src]

type Item = &'a mut T

The type of the elements being iterated over.

type IntoIter = IterMut<'a, T>

Which kind of iterator are we turning this into?

impl<T: Copy> VecAppend<T> for Vec<T>[src]

Auto Trait Implementations

impl<T> !Send for Vec<T>

impl<T> !Sync for Vec<T>

impl<T> Unpin for Vec<T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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> 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.