Skip to main content

Crate axallocator

Crate axallocator 

Source
Expand description

Various allocator algorithms in a unified interface.

There are three types of allocators:

  • ByteAllocator: Byte-granularity memory allocator. (e.g., [BuddyByteAllocator], [SlabByteAllocator])
  • PageAllocator: Page-granularity memory allocator. (e.g., [BitmapPageAllocator])
  • IdAllocator: Used to allocate unique IDs.

Enums§

AllocError
The error type used for allocation.

Traits§

BaseAllocator
The base allocator inherited by other allocators.
ByteAllocator
Byte-granularity allocator.
IdAllocator
Used to allocate unique IDs (e.g., thread ID).
PageAllocator
Page-granularity allocator.

Type Aliases§

AllocResult
A Result type with AllocError as the error type.