core::prelude::rust_2024

Attribute Macro global_allocator

Source
#[global_allocator]
🔬This is a nightly-only experimental API. (prelude_2024 #121042)
Expand description

Attribute macro applied to a static to register it as a global allocator.

See also std::alloc::GlobalAlloc.