Expand description
Memory allocation APIs
Structs§
- Alloc
Error  - The 
AllocErrorerror 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.
 - Layout
Error  - The 
LayoutErroris returned when the parameters given toLayout::from_size_alignor some otherLayoutconstructor do not satisfy its documented constraints. - System
 - The default memory allocator provided by the operating system.
 
Traits§
- Allocator
 - An implementation of 
Allocatorcan allocate, grow, shrink, and deallocate arbitrary blocks of data described viaLayout. - Global
Alloc  - A memory allocator that can be registered as the standard library’s default
through the 
#[global_allocator]attribute. 
Functions§
- alloc⚠
 - Allocates memory with the global allocator.
 - alloc_
zeroed ⚠ - Allocates zero-initialized memory with the global allocator.
 - dealloc⚠
 - Deallocates memory with the global allocator.
 - handle_
alloc_ error  - Signals a memory allocation error.
 - realloc⚠
 - Reallocates memory with the global allocator.