Struct fixed_size_vector::ArrayVec
[−]
[src]
pub struct ArrayVec<A> { /* fields omitted */ }
Methods
impl<A> ArrayVec<A>
[src]
fn new() -> Self where
A: Default,
[src]
A: Default,
fn push<T: Clone>(&mut self, x: &T) -> Result<(), CapacityError> where
A: AsRef<[T]> + AsMut<[T]>,
[src]
A: AsRef<[T]> + AsMut<[T]>,
fn pop_front<T: Default>(&mut self) -> Option<T> where
A: AsRef<[T]> + AsMut<[T]>,
[src]
A: AsRef<[T]> + AsMut<[T]>,
fn len(&self) -> usize
[src]
fn is_empty<T>(&self) -> bool where
A: AsRef<[T]>,
[src]
A: AsRef<[T]>,
fn is_full<T>(&self) -> bool where
A: AsRef<[T]>,
[src]
A: AsRef<[T]>,
Trait Implementations
impl<A: Clone> Clone for ArrayVec<A>
[src]
fn clone(&self) -> ArrayVec<A>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A: Copy> Copy for ArrayVec<A>
[src]
impl<A: Debug> Debug for ArrayVec<A>
[src]
impl<A: Default> Default for ArrayVec<A>
[src]
impl<'a, T: 'a, A: AsRef<[T]>> IntoIterator for &'a ArrayVec<A> where
&'a A: IntoIterator<Item = &'a T>,
[src]
&'a A: IntoIterator<Item = &'a T>,
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = ArrayVecIterator<'a, A>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a, T: 'a, A: AsRef<[T]> + AsMut<[T]>> IntoIterator for &'a mut ArrayVec<A> where
&'a A: IntoIterator<Item = &'a T>,
[src]
&'a A: IntoIterator<Item = &'a T>,