Expand description
Contains mainly allocator types and traits used by FlexArr The most important being
the AltAllocator trait, and the AllocError type.
If the alloc_unstable feature is enabled, the AltAllocator
trait is implemented for types that implement the allocator api Allocator trait.
If built with the std_alloc feature, a wrapper called Global is also
provided. Further, if the alloc_unstable feature is enabled,
the allocator APIs Global is re-exported instead.
Structs§
- Alloc
Error - This indicates some sort of memory allocation error for the alt allocator.
- Global
- This is basically a wrapper around the std global allocator APIs.
Traits§
- AltAllocator
- The rust allocator API is not stable yet. Therefore, this trait can be used to implement/wrap a custom allocator in a no_std environment. It mirrors the unstable allocator API at the moment.