[][src]Union smallvec::SmallVecData

union SmallVecData<A: Array> {
    inline: MaybeUninit<A>,
    heap: (*mut A::Item, usize),
}

Fields

inline: MaybeUninit<A>heap: (*mut A::Item, usize)

Implementations

impl<A: Array> SmallVecData<A>[src]

unsafe fn inline(&self) -> *const A::Item[src]

unsafe fn inline_mut(&mut self) -> *mut A::Item[src]

fn from_inline(inline: MaybeUninit<A>) -> SmallVecData<A>[src]

unsafe fn into_inline(self) -> MaybeUninit<A>[src]

unsafe fn heap(&self) -> (*mut A::Item, usize)[src]

unsafe fn heap_mut(&mut self) -> &mut (*mut A::Item, usize)[src]

fn from_heap(ptr: *mut A::Item, len: usize) -> SmallVecData<A>[src]

Trait Implementations

impl<A: Array + Send> Send for SmallVecData<A>[src]

impl<A: Array + Sync> Sync for SmallVecData<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for SmallVecData<A> where
    A: RefUnwindSafe,
    <A as Array>::Item: RefUnwindSafe

impl<A> Unpin for SmallVecData<A> where
    A: Unpin

impl<A> UnwindSafe for SmallVecData<A> where
    A: UnwindSafe,
    <A as Array>::Item: RefUnwindSafe

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