Skip to main content

Module alloc

Module alloc 

Source
Expand description

Allocation strategies and ownership-backed storage abstractions.

alloc

Extends: std::{alloc}


Macros§

arena
🏗️ 🧺 A custom memory arena generator.

Structs§

Alloc
🧺 🛠️ Memory-allocation-related operations.
ArenaExample
🧺 An example memory arena.
ArenaHandleExample
🧺 An example memory arena handle.
ArenaMarkExample
🧺 An example memory arena mark.
BareBox
🫗 A no-op pointer type, like a Box but without affecting how T is stored.
Boxedalloc
🫗 A zero-sized marker for a Storage type that wraps its data in a Box.
BumpAllocalloc and unsafe_layout
🧺 A simple, single-threaded bump allocator.
LinuxMmapAllocLinux and alloc and unsafe_layout and (std or unsafe_ffi)
🐧 🧺 A Linux global memory allocator backed directly by anonymous mmap.
MemLayoutalloc
🧺 alloc Layout of a block of memory.
MemLayoutErroralloc
🧺 🚩 alloc The MemLayout parameters violated constraints.
SystemAllocstd
🧺 std The default memory allocator provided by the operating system.
WasmAllocWebAssembly and alloc and unsafe_layout
🧺 A WebAssembly global memory allocator that uses a bump allocation strategy.

Traits§

GlobalAllocalloc
🧺 alloc A memory allocator that can be registered as the standard library’s default.
Storage
🫗 Allows data structures to be generic over their storage strategy.

Type Aliases§

Bare
🫗 core A zero-sized marker for a Storage type that wraps its data in a BareBox.