pub trait EmplaceInitializer {
    type Output: ?Sized;

    // Required methods
    fn layout(&mut self) -> Layout;
    fn emplace(self, ptr: NonNull<u8>) -> NonNull<Self::Output>;
}
Expand description

An abstract interface for all emplace initializer

Required Associated Types§

Required Methods§

source

fn layout(&mut self) -> Layout

Layout of the type

source

fn emplace(self, ptr: NonNull<u8>) -> NonNull<Self::Output>

Emplace the type in given memory

Implementors§