Module xalloc::arena

source ·
Expand description

Memory arena traits (used by Tlsf).

Re-exports

pub use self::sys::SysAllocator;
pub use self::checked::CheckedArena;
pub use self::pooled::PooledArena;

Modules

Naïve memory-safe implementation of Arena.
Adds a Vec-based pool to any memory arena for faster reallocation.
UnsafeArena implementation that relies on the system memory allocator.

Traits

Memory-safe homogeneous memory arena types.
Marker trait indicating all operations from UnsafeArena are actually implemented as memory-safe (not unsafe).
Homogeneous memory arena types supporting operations that do not guarantee memory safety.
Homogeneous memory arena types capable of checking whether a given pointer was created by the same instance of the arena.