Expand description
Unstable Memory allocation APIs
Structs§
- Alloc
Error - 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.
Traits§
- Allocator
- An implementation of
Allocator
can allocate, grow, shrink, and deallocate arbitrary blocks of data described viaLayout
.
Functions§
- non_
null_ empty_ slice - Creates a dangling
NonNull<[u8]>
slice of size 0 with the specified layout alignment.