[][src]Struct copyless::BoxAllocation

pub struct BoxAllocation<T>(_);

A typesafe helper that stores the allocated pointer without the data initialized.

Implementations

impl<T> BoxAllocation<T>[src]

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

Consumes self and writes the given value into the allocation.

Trait Implementations

impl<T> Drop for BoxAllocation<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for BoxAllocation<T> where
    T: RefUnwindSafe

impl<T> !Send for BoxAllocation<T>

impl<T> !Sync for BoxAllocation<T>

impl<T> Unpin for BoxAllocation<T>

impl<T> UnwindSafe for BoxAllocation<T> where
    T: 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.