Skip to main content

Module system

Module system 

Source
Expand description

System allocator backed by the OS memory-management API.

SystemAllocator wraps platform alignment-aware allocation primitives:

PlatformAllocFree
Unixposix_memalignfree
Windows_aligned_malloc_aligned_free
Otheralways returns Noneno-op

This is the lowest-level allocator in the crate. Higher-level allocators (arena, bump, pool) typically use a SystemAllocator as their backing allocator.

Structsยง

SystemAllocator
An Allocator that delegates directly to the operating system.