[−][src]Struct stack::ArrayVec
Implementations
impl<T: Array> ArrayVec<T>
[src]
pub fn into_inner(self) -> Result<T, Self>
[src]
Trait Implementations
impl<T: Array> Clone for ArrayVec<T> where
T::Item: Clone,
[src]
T::Item: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Array> Debug for ArrayVec<T> where
T::Item: Debug,
[src]
T::Item: Debug,
impl<T: Array> Default for ArrayVec<T>
[src]
impl<T: Array> Deref for ArrayVec<T>
[src]
type Target = [T::Item]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<T: Array> DerefMut for ArrayVec<T>
[src]
impl<T: Array> Drop for ArrayVec<T>
[src]
impl<T: Array> Eq for ArrayVec<T> where
T::Item: Eq,
[src]
T::Item: Eq,
impl<T: Array> Extend<<T as Array>::Item> for ArrayVec<T>
[src]
fn extend<I: IntoIterator<Item = T::Item>>(&mut self, iter: I)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl<T: Array, S> From<ArrayVec<T>> for SmallVec<T, S>
[src]
impl<T: Array> From<T> for ArrayVec<T>
[src]
impl<T: Array> FromIterator<<T as Array>::Item> for ArrayVec<T>
[src]
fn from_iter<I: IntoIterator<Item = T::Item>>(iter: I) -> Self
[src]
impl<T: Array> Hash for ArrayVec<T> where
T::Item: Hash,
[src]
T::Item: Hash,
fn hash<H: Hasher>(&self, h: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Array> Index<Range<usize>> for ArrayVec<T> where
[T::Item]: Index<Range<usize>>,
[src]
[T::Item]: Index<Range<usize>>,
type Output = <[T::Item] as Index<Range<usize>>>::Output
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &Self::Output
[src]
impl<T: Array> Index<RangeFrom<usize>> for ArrayVec<T> where
[T::Item]: Index<RangeFrom<usize>>,
[src]
[T::Item]: Index<RangeFrom<usize>>,
type Output = <[T::Item] as Index<RangeFrom<usize>>>::Output
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &Self::Output
[src]
impl<T: Array> Index<RangeFull> for ArrayVec<T> where
[T::Item]: Index<RangeFull>,
[src]
[T::Item]: Index<RangeFull>,
type Output = <[T::Item] as Index<RangeFull>>::Output
The returned type after indexing.
fn index(&self, index: RangeFull) -> &Self::Output
[src]
impl<T: Array> Index<RangeTo<usize>> for ArrayVec<T> where
[T::Item]: Index<RangeTo<usize>>,
[src]
[T::Item]: Index<RangeTo<usize>>,
type Output = <[T::Item] as Index<RangeTo<usize>>>::Output
The returned type after indexing.
fn index(&self, index: RangeTo<usize>) -> &Self::Output
[src]
impl<T: Array> Index<usize> for ArrayVec<T> where
[T::Item]: Index<usize>,
[src]
[T::Item]: Index<usize>,
type Output = <[T::Item] as Index<usize>>::Output
The returned type after indexing.
fn index(&self, index: usize) -> &Self::Output
[src]
impl<T: Array> IndexMut<Range<usize>> for ArrayVec<T>
[src]
impl<T: Array> IndexMut<RangeFrom<usize>> for ArrayVec<T>
[src]
impl<T: Array> IndexMut<RangeFull> for ArrayVec<T>
[src]
impl<T: Array> IndexMut<RangeTo<usize>> for ArrayVec<T>
[src]
impl<T: Array> IndexMut<usize> for ArrayVec<T>
[src]
impl<T: Array> IntoIterator for ArrayVec<T>
[src]
type Item = T::Item
The type of the elements being iterated over.
type IntoIter = ArrayVecIntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T: Array> IntoIterator for &'a ArrayVec<T>
[src]
type Item = &'a T::Item
The type of the elements being iterated over.
type IntoIter = Iter<'a, T::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, T: Array> IntoIterator for &'a mut ArrayVec<T>
[src]
type Item = &'a mut T::Item
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<T: Array, R, RHS: Deref<Target = [R]>> PartialEq<RHS> for ArrayVec<T> where
T::Item: PartialEq<R>,
[src]
T::Item: PartialEq<R>,
impl<T: Array> Spilled<ArrayVec<T>> for Vec<T::Item>
[src]
impl<T: Array> Vector for ArrayVec<T>
[src]
type Item = T::Item
fn with_capacity(cap: usize) -> Self
[src]
fn capacity(&self) -> usize
[src]
fn reserve(&mut self, additional: usize)
[src]
fn reserve_exact(&mut self, additional: usize)
[src]
fn shrink_to_fit(&mut self)
[src]
fn into_boxed_slice(self) -> Box<[T::Item]>
[src]
unsafe fn set_len(&mut self, len: usize)
[src]
fn len(&self) -> usize
[src]
fn as_ptr(&self) -> *const T::Item
[src]
fn as_mut_ptr(&mut self) -> *mut T::Item
[src]
fn new() -> Self where
Self: Sized,
[src]
Self: Sized,
fn truncate(&mut self, len: usize)
[src]
fn swap_remove(&mut self, index: usize) -> Self::Item
[src]
fn insert(&mut self, index: usize, element: Self::Item)
[src]
fn remove(&mut self, index: usize) -> Self::Item
[src]
fn retain<F: FnMut(&Self::Item) -> bool>(&mut self, f: F) where
Self: Sized,
[src]
Self: Sized,
fn push(&mut self, value: Self::Item)
[src]
fn pop(&mut self) -> Option<Self::Item>
[src]
fn clear(&mut self)
[src]
fn is_empty(&self) -> bool
[src]
fn push_cap(&mut self, value: Self::Item) -> Result<(), Self::Item>
[src]
fn insert_cap(
&mut self,
index: usize,
element: Self::Item
) -> Option<Self::Item>
[src]
&mut self,
index: usize,
element: Self::Item
) -> Option<Self::Item>
fn as_slice(&self) -> &[Self::Item]
[src]
fn as_mut_slice(&mut self) -> &mut [Self::Item]
[src]
unsafe fn uninitialized_resize(&mut self, new_len: usize)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ArrayVec<T> where
T: RefUnwindSafe,
<T as Array>::Index: RefUnwindSafe,
T: RefUnwindSafe,
<T as Array>::Index: RefUnwindSafe,
impl<T> Send for ArrayVec<T> where
T: Send,
<T as Array>::Index: Send,
T: Send,
<T as Array>::Index: Send,
impl<T> Sync for ArrayVec<T> where
T: Sync,
<T as Array>::Index: Sync,
T: Sync,
<T as Array>::Index: Sync,
impl<T> Unpin for ArrayVec<T> where
T: Unpin,
<T as Array>::Index: Unpin,
T: Unpin,
<T as Array>::Index: Unpin,
impl<T> UnwindSafe for ArrayVec<T> where
T: UnwindSafe,
<T as Array>::Index: UnwindSafe,
T: UnwindSafe,
<T as Array>::Index: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,