Struct ami::Vec
[−]
[src]
pub struct Vec<T> { /* fields omitted */ }
A growable array on the heap.
Methods
impl<T> Vec<T>
[src]
fn new() -> Vec<T>
Create an empty Vec<T>
.
fn push(&mut self, elem: T)
Append an element at the end of the Vec<T>
.
fn pop(&mut self) -> Option<T>
Remove the last element of the Vec<T>
and return it, or None
if
the Vec<T>
is empty.
fn as_ptr(&self) -> *const T
Get a raw pointer to the Vec<T>
's Buffer.
Trait Implementations
impl<T> Drop for Vec<T>
[src]
impl<T> Display for Vec<T> where
T: Display,
[src]
T: Display,
impl<T> Deref for Vec<T>
[src]
type Target = [T]
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<T> DerefMut for Vec<T>
[src]
impl<T> Index<usize> for Vec<T>
[src]
type Output = T
The returned type after indexing
fn index(&self, index: usize) -> &Self::Output
The method for the indexing (container[index]
) operation