Struct allocators::Place [] [src]

pub struct Place<'a, T: 'a, A: 'a + ?Sized + Allocator> {
    // some fields omitted
}

A place for allocating into. This is only used for in-place allocation, e.g. let val = in (alloc.make_place().unwrap()) { EXPR }

Trait Implementations

impl<'a, T: 'a, A: 'a + ?Sized + Allocator> Placer<T> for Place<'a, T, A>

type Place = Self

fn make_place(self) -> Self

impl<'a, T: 'a, A: 'a + ?Sized + Allocator> InPlace<T> for Place<'a, T, A>

type Owner = AllocBox<'a, T, A>

unsafe fn finalize(self) -> Self::Owner

impl<'a, T: 'a, A: 'a + ?Sized + Allocator> StdPlace<T> for Place<'a, T, A>

fn pointer(&mut self) -> *mut T

impl<'a, T: 'a, A: 'a + ?Sized + Allocator> Drop for Place<'a, T, A>

fn drop(&mut self)