Skip to content

Design Decisions

MaulingMonkey edited this page Apr 14, 2025 · 1 revision

Using &self for allocator traits

rust-lang chose this to support lock free data structures.

downside is allocators must be given interior mutability.

See rust-lang/wg-allocators#55 Change AllocRef to take &self

Clone this wiki locally