Skip to main content

Module allocator

Module allocator 

Source
Expand description

Core allocator abstraction.

This module defines the Allocator trait — the single interface that every allocator in the crate implements and that every collection depends on.

The design is deliberately minimal: two methods (alloc / dealloc) that mirror the semantics of posix_memalign / free while being safe to compose behind higher-level wrappers.

Traits§

Allocator
Low-level memory allocator interface.