Struct heapless::Vec [] [src]

pub struct Vec<T, A> where
    A: AsMut<[T]> + AsRef<[T]>,
    T: Copy
{ /* fields omitted */ }

A continuous, growable array type

Methods

impl<T, A> Vec<T, A> where
    A: AsMut<[T]> + AsRef<[T]>,
    T: Copy
[src]

Creates a new vector using array as the backup storage

Returns the capacity of this vector

Clears the vector, removing all values

Removes the last element from this vector and returns it, or None if it's empty

Appends an element to the back of the collection

This method returns Err if the vector is full

Trait Implementations

impl<T, A> Deref for Vec<T, A> where
    A: AsMut<[T]> + AsRef<[T]>,
    T: Copy
[src]

The resulting type after dereferencing

The method called to dereference a value