[][src]Struct stack::SmallVec

pub struct SmallVec<T: Array, S = Vec<<T as Array>::Item>>(_);

Implementations

impl<T: Array, S: Vector + Spilled<ArrayVec<T>>> SmallVec<T, S>[src]

pub fn spill(&mut self)[src]

pub fn is_spilled(&self) -> bool[src]

impl<T: Array, S> SmallVec<T, S>[src]

pub fn into_inner(self) -> Coalesce2<ArrayVec<T>, S>[src]

Trait Implementations

impl<'a, T: Array + 'a, S: Vector<Item = T::Item> + 'a> AsRef<dyn Vector<Item = <T as Array>::Item> + 'a> for SmallVec<T, S> where
    T::Item: 'a,
    T::Index: 'a, 
[src]

impl<T: Array, S: Clone> Clone for SmallVec<T, S> where
    ArrayVec<T>: Clone
[src]

impl<T: Array, S: Debug + Vector<Item = T::Item> + Spilled<ArrayVec<T>>> Debug for SmallVec<T, S> where
    ArrayVec<T>: Debug
[src]

impl<T: Array, S> Default for SmallVec<T, S>[src]

impl<T: Array, S: Deref> Deref for SmallVec<T, S> where
    ArrayVec<T>: Deref<Target = S::Target>, 
[src]

type Target = S::Target

The resulting type after dereferencing.

impl<T: Array, S: DerefMut> DerefMut for SmallVec<T, S> where
    ArrayVec<T>: DerefMut + Deref<Target = S::Target>, 
[src]

impl<T: Array, S: Extend<T::Item>> Extend<<T as Array>::Item> for SmallVec<T, S> where
    SmallVec<T, S>: Vector
[src]

impl<T: Array, S> From<ArrayVec<T>> for SmallVec<T, S>[src]

impl<T: Array, S: Extend<T::Item>> FromIterator<<T as Array>::Item> for SmallVec<T, S> where
    SmallVec<T, S>: Vector
[src]

impl<T: Array, S: Hash> Hash for SmallVec<T, S> where
    ArrayVec<T>: Hash
[src]

impl<T: Array, S: Spilled<ArrayVec<T>> + Index<Range<usize>>> Index<Range<usize>> for SmallVec<T, S> where
    ArrayVec<T>: Index<Range<usize>, Output = <S as Index<Range<usize>>>::Output>, 
[src]

type Output = <S as Index<Range<usize>>>::Output

The returned type after indexing.

impl<T: Array, S: Spilled<ArrayVec<T>> + Index<RangeFrom<usize>>> Index<RangeFrom<usize>> for SmallVec<T, S> where
    ArrayVec<T>: Index<RangeFrom<usize>, Output = <S as Index<RangeFrom<usize>>>::Output>, 
[src]

type Output = <S as Index<RangeFrom<usize>>>::Output

The returned type after indexing.

impl<T: Array, S: Spilled<ArrayVec<T>> + Index<RangeFull>> Index<RangeFull> for SmallVec<T, S> where
    ArrayVec<T>: Index<RangeFull, Output = <S as Index<RangeFull>>::Output>, 
[src]

type Output = <S as Index<RangeFull>>::Output

The returned type after indexing.

impl<T: Array, S: Spilled<ArrayVec<T>> + Index<RangeTo<usize>>> Index<RangeTo<usize>> for SmallVec<T, S> where
    ArrayVec<T>: Index<RangeTo<usize>, Output = <S as Index<RangeTo<usize>>>::Output>, 
[src]

type Output = <S as Index<RangeTo<usize>>>::Output

The returned type after indexing.

impl<T: Array, S: Spilled<ArrayVec<T>> + Index<usize>> Index<usize> for SmallVec<T, S> where
    ArrayVec<T>: Index<usize, Output = <S as Index<usize>>::Output>, 
[src]

type Output = <S as Index<usize>>::Output

The returned type after indexing.

impl<T: Array, S: Spilled<ArrayVec<T>> + IndexMut<Range<usize>>> IndexMut<Range<usize>> for SmallVec<T, S> where
    ArrayVec<T>: IndexMut<Range<usize>, Output = <S as Index<Range<usize>>>::Output>, 
[src]

impl<T: Array, S: Spilled<ArrayVec<T>> + IndexMut<RangeFrom<usize>>> IndexMut<RangeFrom<usize>> for SmallVec<T, S> where
    ArrayVec<T>: IndexMut<RangeFrom<usize>, Output = <S as Index<RangeFrom<usize>>>::Output>, 
[src]

impl<T: Array, S: Spilled<ArrayVec<T>> + IndexMut<RangeFull>> IndexMut<RangeFull> for SmallVec<T, S> where
    ArrayVec<T>: IndexMut<RangeFull, Output = <S as Index<RangeFull>>::Output>, 
[src]

impl<T: Array, S: Spilled<ArrayVec<T>> + IndexMut<RangeTo<usize>>> IndexMut<RangeTo<usize>> for SmallVec<T, S> where
    ArrayVec<T>: IndexMut<RangeTo<usize>, Output = <S as Index<RangeTo<usize>>>::Output>, 
[src]

impl<T: Array, S: Spilled<ArrayVec<T>> + IndexMut<usize>> IndexMut<usize> for SmallVec<T, S> where
    ArrayVec<T>: IndexMut<usize, Output = <S as Index<usize>>::Output>, 
[src]

impl<T: Array, S: IntoIterator<Item = <ArrayVec<T> as IntoIterator>::Item>> IntoIterator for SmallVec<T, S> where
    ArrayVec<T>: IntoIterator
[src]

type Item = <S as IntoIterator>::Item

The type of the elements being iterated over.

type IntoIter = SmallVecIter<<ArrayVec<T> as IntoIterator>::IntoIter, <S as IntoIterator>::IntoIter>

Which kind of iterator are we turning this into?

impl<T: Array, S: Vector<Item = T::Item> + Spilled<ArrayVec<T>>> Vector for SmallVec<T, S>[src]

type Item = T::Item

Auto Trait Implementations

impl<T, S> RefUnwindSafe for SmallVec<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as Array>::Index: RefUnwindSafe

impl<T, S> Send for SmallVec<T, S> where
    S: Send,
    T: Send,
    <T as Array>::Index: Send

impl<T, S> Sync for SmallVec<T, S> where
    S: Sync,
    T: Sync,
    <T as Array>::Index: Sync

impl<T, S> Unpin for SmallVec<T, S> where
    S: Unpin,
    T: Unpin,
    <T as Array>::Index: Unpin

impl<T, S> UnwindSafe for SmallVec<T, S> where
    S: UnwindSafe,
    T: UnwindSafe,
    <T as Array>::Index: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.