Module prelude

Module prelude 

Source
Expand description

Prelude module for allocator API types.

This module centralizes the conditional imports for allocator-related types, allowing the rest of the crate to use consistent types regardless of whether the nightly feature is enabled or not.

Structs§

AllocError
The AllocError 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.

Traits§

Allocator
An implementation of Allocator can allocate, grow, shrink, and deallocate arbitrary blocks of data described via Layout.