[][src]Struct copyless::VecAllocation

pub struct VecAllocation<'a, T: 'a> { /* fields omitted */ }

A typesafe helper that separates new value construction from vector growing, allowing LLVM to ideally construct the element in place.

Implementations

impl<'a, T> VecAllocation<'a, T>[src]

pub fn init(self, value: T) -> usize[src]

Consumes self and writes the given value into the allocation.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for VecAllocation<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for VecAllocation<'a, T> where
    T: Send

impl<'a, T> Sync for VecAllocation<'a, T> where
    T: Sync

impl<'a, T> Unpin for VecAllocation<'a, T>

impl<'a, T> !UnwindSafe for VecAllocation<'a, T>

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.