[][src]Struct tinyvec::TinyVec

#[repr(transparent)]
pub struct TinyVec<T: Default>(_);

A TinyVec<T> is like a Vec<T>, but it will store up to 8 elements "inline" on the stack before transitioning into being a normal Vec<T>.

Methods

impl<T: Default> TinyVec<T>[src]

pub fn new() -> Self[src]

pub fn push(&mut self, val: T)[src]

pub fn pop(&mut self) -> Option<T>[src]

Trait Implementations

impl<T: Clone + Default> Clone for TinyVec<T>[src]

impl<T: Debug + Default> Debug for TinyVec<T>[src]

impl<T: Default> Default for TinyVec<T>[src]

impl<T: Default> Deref for TinyVec<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T: Default> DerefMut for TinyVec<T>[src]

Auto Trait Implementations

impl<T> Send for TinyVec<T> where
    T: Send

impl<T> Sync for TinyVec<T> where
    T: Sync

impl<T> Unpin for TinyVec<T> where
    T: Unpin

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<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.