[][src]Module alloc_wg::alloc

Structs

AbortAlloc

An allocator, which wraps another allocator and aborts on OOM.

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.

CapacityOverflow
Global

The global memory allocator.

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
BuildAllocRef
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.