Module alloc::heap [] [src]

Unstable

Constants

EMPTY [Unstable]

An arbitrary non-null address to represent zero-size allocations.

Functions

allocate [Unstable]

Return a pointer to size`sizebytes of memory aligned to` bytes of memory aligned to align`align`.

deallocate [Unstable]

Deallocates the memory referenced by ptr`ptr`.

reallocate [Unstable]

Resize the allocation referenced by ptr`ptrto` to size`size` bytes.

reallocate_inplace [Unstable]

Resize the allocation referenced by ptr`ptrto` to size`size` bytes.

stats_print [Unstable]

Prints implementation-defined allocator statistics.

usable_size [Unstable]

Returns the usable size of an allocation created with the specified the size`sizeand` and align`align`.