Struct heapless::Vec [] [src]

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

A Vec, vector, backed by a fixed size array

Methods

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

[src]

Constructs a new, empty Vec<T> backed by the array A

[src]

Returns the maximum number of elements the vector can hold

[src]

Clears the vector, removing all values.

[src]

Removes the last element from a vector and return it, or None if it's empty

[src]

Appends an element to the back of the collection

Returns BufferFullError if the vector is full

[src]

Shortens the vector, keeping the first len elements and dropping the rest.

Trait Implementations

impl<T, A> Drop for Vec<T, A> where
    A: Unsize<[T]>, 
[src]

[src]

Executes the destructor for this type. Read more

impl<'a, T, A> IntoIterator for &'a Vec<T, A> where
    A: Unsize<[T]>, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<'a, T, A> IntoIterator for &'a mut Vec<T, A> where
    A: Unsize<[T]>, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<T, A> Deref for Vec<T, A> where
    A: Unsize<[T]>, 
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

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

[src]

Mutably dereferences the value.