[][src]Module alloc_wg::alloc

Structs

AbortAlloc
AllocErr

The AllocErr error indicates an allocation failure that may be due to resource exhaustion or to something wrong when combining the given input arguments with this allocator.

Global

The global memory allocator.

Layout

Layout of a block of memory.

LayoutErr

The parameters given to Layout::from_size_align or some other Layout constructor do not satisfy its documented constraints.

NonZeroLayout

Non-zero Layout of a block of memory.

Traits

AllocRef
BuildAlloc
BuildDealloc
BuildRealloc
DeallocRef
GlobalAlloc

A memory allocator that can be registered as the standard library’s default though the #[global_allocator] attributes.

ReallocRef

Functions

alloc

Allocate memory with the global allocator.

alloc_zeroed

Allocate zero-initialized memory with the global allocator.

dealloc

Deallocate memory with the global allocator.

realloc

Reallocate memory with the global allocator.