Expand description
Support for memory allocation.
Structs§
- 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.
- An allocator backed by a fixed storage buffer.
- The global memory allocator.
- An allocator which may represent either a fixed allocation or a dynamic allocation with an allocator instance
A
. - An allocator which allocates via
A
and zeroizes all buffers when they are released.
Traits§
- For all types which are an allocator or reference an allocator, enable their usage as a target for allocation.
- An implementation of Allocator can allocate, grow, shrink, and deallocate arbitrary blocks of data described via
Layout
. - A trait implemented by allocators supporting a constant initializer. This cannot use ConstDefault as it is not implemented for the external
Global
allocator. - A marker trait for allocators which zeroize on deallocation.
- Convert between types in this crate and standard containers.
- Attach an allocator to a fixed allocation buffer. Once the initial buffer is exhausted, additional buffer(s) may be requested from the new allocator instance.
Functions§
- Signals a memory allocation error.