Module embedded_alloc

Module embedded_alloc 

Source
Expand description

Embedded-friendly allocator for no_std environments

This module provides a simple, efficient allocator suitable for embedded systems with limited memory. Features:

  • Fixed-size pool allocation for predictable memory usage
  • Bump allocator for sequential allocations
  • Stack-based allocation for temporary data
  • Zero-allocation APIs where possible

Structsยง

BumpAllocator
Bump allocator for sequential allocations
EmbeddedAllocator
Global embedded allocator combining bump and pool allocation
FixedPool
Fixed-size memory pool for embedded systems
StackAllocator
Stack-based allocator for temporary allocations
StackGuard
RAII guard for stack allocations