Crate placement_new[][src]

Common utilities to implement “placement-new”.

Macros

uninit_project

Projects a type to its uninitialized mirror.

Traits

SinglePlace

A place containing a single value.

SlicePlace

A place containing multiple continuous values.

UninitProject

A type with determined layout. It can be projected to another type with the same fields, but all the fields are not initialized yet.

Functions

emplace_with

Allocates memory and initialize it.

emplace_zeroed_with

Allocates zeroed memory and initialize it.

init_slice_with

Initializes a slice.

memset_zeroed

Sets the content of T to zero.

overwrite

Overwrites the content of T.

Derive Macros

UninitProject

Implements UninitProject for a type and generates corresponding types.