Module alloc::heapExperimental [-]  [+] [src]

Constants

pub const EMPTY: *mut () = 0x1 as *mut ()

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

This preserves the non-null invariant for types like Box<T>. The address may overlap with non-zero-size memory allocations.

 

Functions

allocate

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

deallocate

Deallocates the memory referenced by ptr.

reallocate

Resize the allocation referenced by ptr to size bytes.

reallocate_inplace

Resize the allocation referenced by ptr to size bytes.

stats_print

Prints implementation-defined allocator statistics.

usable_size

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